pelias / labels

Pelias Label generation
https://pelias.io
MIT License
4 stars 9 forks source link

Fix 500 errors by handling missing country_a #12

Closed orangejulius closed 8 years ago

orangejulius commented 8 years ago

The code assumed that all records have a country_a value that is an array with one element. They should all meet this condition, but of course data errors mean that some won't.

orangejulius commented 8 years ago

I noticed this case from this record: https://whosonfirst.mapzen.com/spelunker/id/85632427/#7/33.922/76.528, which ends up not having an abbreviation.