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

Use leaflet-pip to find point-in-polygon in php file or online database? #31

Open hjrobinson opened 6 years ago

hjrobinson commented 6 years ago

This is more of a question than an issue, I was just wondering if there is a way to use leaflet-pip to query data stored in php. The reason I ask is that I have record set that is too large to bring in to the client with out crashing it. Thanks ahead of time. If you could even give me some starter tips it would be appreciated.

elake2018 commented 5 years ago

you can't use client side libraries like this to query backend data. Say you have your data stored in SQLServer, you could use a sql query like "SELECT @geography.STIntersects(@geography)", then return those results to the client side.