From 4415135a9ee674a947f0118c8fe66eb845f1e77c Mon Sep 17 00:00:00 2001 From: Trevor Gerhardt Date: Mon, 21 Nov 2016 15:34:52 +0800 Subject: [PATCH] fix(transitive): Don't show origin or destination labels by default --- lib/get-transitive-data.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/get-transitive-data.js b/lib/get-transitive-data.js index 72db68a..b2121fa 100644 --- a/lib/get-transitive-data.js +++ b/lib/get-transitive-data.js @@ -31,7 +31,7 @@ export default function getTransitiveData ({ origin, query, stopTreeCache, netwo output.places.push({ place_id: 'from', - place_name: from.name || 'Origin', // todo do this with icons, avoid English works (or Portuguese words, for that matter) + place_name: from.name, // TODO do this with icons, avoid English works (or Portuguese words, for that matter) place_lat: fromCoord.lat || pixelToLat(query.north + origin.y, query.zoom), place_lon: fromCoord.lon || pixelToLon(query.west + origin.x, query.zoom) }) @@ -43,7 +43,7 @@ export default function getTransitiveData ({ origin, query, stopTreeCache, netwo output.places.push({ place_id: 'to', - place_name: to.name || 'Destination', + place_name: to.name, place_lat: toCoord.lat || pixelToLat(query.north + to.y, query.zoom), place_lon: toCoord.lon || pixelToLon(query.west + to.x, query.zoom) })