ankhmor Posted October 31, 2010 Share Posted October 31, 2010 How would I calculate if a coordinate lies within a polygon with an indefinite amount of points? If that's really complex math how would I do the same if the polygon had only four points? All using Google Maps. But for this I mostly need the math. Quote Link to comment https://forums.phpfreaks.com/topic/217393-google-maps/ Share on other sites More sharing options...
salathe Posted November 1, 2010 Share Posted November 1, 2010 The math isn't particularly complicated, to see a description of the problem and existing algorithms visit PIP on wikipedia. Perhaps of more immediate benefit to yourself would be an existing solution in JavaScript to work specifically with Google Maps like a google.maps.Polygon.containsLatLng extension. Quote Link to comment https://forums.phpfreaks.com/topic/217393-google-maps/#findComment-1128793 Share on other sites More sharing options...
ankhmor Posted November 1, 2010 Author Share Posted November 1, 2010 thanks A LOT Quote Link to comment https://forums.phpfreaks.com/topic/217393-google-maps/#findComment-1128804 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.