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) })