whosonfirst / whosonfirst-www-spelunker

A simple Flask-based spelunker for poking around Who's On First data
BSD 3-Clause "New" or "Revised" License
7 stars 9 forks source link

Better error code when no language faceting results #109

Open nvkelso opened 7 years ago

nvkelso commented 7 years ago

File under polish... Turns out "all" the country features are translated to English, huzzah!

But looking at that page returns an error saying it doesn't know about the country placetype, when it's that there aren't any bad data matches to display.

https://whosonfirst.dev.mapzen.com/spelunker/placetypes/country/?&translations=!eng

While looking at a result like Spanish that is missing translations will display them as a list:

https://whosonfirst.dev.mapzen.com/spelunker/placetypes/country/?&translations=!spa

screen shot 2017-07-07 at 14 32 54 screen shot 2017-07-07 at 14 32 50
nvkelso commented 7 years ago

Followup for: https://github.com/whosonfirst/whosonfirst-www-spelunker/issues/105.