pelias / whosonfirst

Importer for Who's on First gazetteer
MIT License
27 stars 43 forks source link

fix(NullIsland): Detect string values for Null Island #447

Closed orangejulius closed 5 years ago

orangejulius commented 5 years ago

The stream component to filter out Null Island related records was checking against a single string value that represents 0, when of course there are many.

By converting the field into a number and then comparing with 0, Null Island detection is made more robust.

Connects https://github.com/pelias/whosonfirst/pull/370 Connects https://github.com/pelias/pelias/issues/692

orangejulius commented 5 years ago

In my testing, we import 3998053 postalcodes before this change, and 3148499 after it.