mapbox / which-polygon

Index for matching points against a set of GeoJSON polygons
ISC License
133 stars 14 forks source link

Problems with points near polygon boundaries #13

Closed rogargon closed 4 years ago

rogargon commented 4 years ago

After experiencing some issues with the countries GeoJSON when points are near the coastline, is it possible to get the nearest polygon if none matches exactly?

rogargon commented 4 years ago

Solved using the bbox query