whosonfirst / whosonfirst-www-api

4 stars 2 forks source link

Consider using lbl:latitude and lbl:longitude to display results #120

Open stepps00 opened 6 years ago

stepps00 commented 6 years ago

https://places.mapzen.com/search?q=city+by+the+bay&scope=alt

The current use of geom:latitude and geom:longitude is causing the above search to display San Francisco in the Pacific. Defaulting to the lbl:latitude and lbl:longitude values would solve this issue and similar cases, as we curate the lbl: properties for map display.

thisisaaronland commented 6 years ago

Yes, that's a bug. We should probably document the logic here as a reference for all the software-bits to implement:

https://github.com/whosonfirst/go-whosonfirst-geojson-v2/blob/master/properties/whosonfirst/whosonfirst.go#L65-L92