We are making incorrect requests to the /wof GeoJSON endpoint, based on non-WoF IDs. Check that a place ID is actually from Who's On First before attempting to show the outline in the search UI, or passing on its ID to make an ODES request.
To reproduce, search for "New Haven" and select the locality:
We are making incorrect requests to the
/wof
GeoJSON endpoint, based on non-WoF IDs. Check that a place ID is actually from Who's On First before attempting to show the outline in the search UI, or passing on its ID to make an ODES request.To reproduce, search for "New Haven" and select the locality:
That locality is actually from GeoNames, and leads to this request: https://search.mapzen.com/v1/place?api_key=search-owZDPeC&ids=geonames:locality:4839366
Which generates this bad request: https://mapzen.com/data/metro-extracts-alt/wof/4839366.geojson
We can tell the ID won't work and the place is not in Who's On First, because the first Mapzen Search response has these properties:
We instead need to look for a WoF source, like this: