mapbox / leaflet-pip

point in polygon intersections for leaflet
https://mapbox.github.io/leaflet-pip/
BSD 2-Clause "Simplified" License
199 stars 46 forks source link

Server side #12

Closed alexcroox closed 9 years ago

alexcroox commented 9 years ago

I need to use this server side to give a reward, so therefore I cannot trust the client. Is there anyway of using this server side in nodejs? I notice in the source it seems to be actually drawing polygons to determine so I'm thinking not? Sorry for my ignorance.

alexcroox commented 9 years ago

For anyone looking for a server side solution, I'm currently using https://github.com/substack/point-in-polygon

franckl commented 9 years ago

Hi Alex, I use Mongo db for this task if you have lots of polygons or multi-polygons (see geoWithin / geoIntersect)