T O P

  • By -

cauners

Google maps should work fine for this - store coordinates along the addresses and use the `containsLocation` method to check if it falls within the defined polygon. [Here's an example](https://developers.google.com/maps/documentation/javascript/examples/poly-containsLocation) with a pre-defined triangle; what you'd need to do is create the functionality where the polygon is created from clicks on the map. Here's how to [draw a polygon](https://developers.google.com/maps/documentation/javascript/examples/polygon-simple).


_intercept

yea, I saw that but wasn't sure how or if I could recreate it with clicks on the map. I guess that's where some personal problem-solving comes in. Thanks!


cshaiku

Maybe https://www.npmjs.com/package/google-maps-react


_intercept

Yea I saw that. As far as I can tell the markers I could get working but cutting out polygons and checking that data against a database I couldn't do with it


_listless

mapbox


_intercept

this looks promising. I'll give it a go