How to tell if a given coordinate is in a bounding box?

0

I have a coordinate (lat and lon) and also a bounding box (minlon, minlat, maxlon, maxlat) and I have to find out if a given coordinate is within the area. So far I have not found how I do, I looked in the Google Maps API documentation and found nothing relevant.

    
asked by anonymous 31.08.2018 / 17:59

1 answer

0

Good,

I'm not sure if this is what you're looking for, but have you tried using .getBounds() and .contains() ?

Here's a good example that determines if a particular location is within a Radius of a bookmark. If you find one of the coordinates specified in the code, it returns " True ".

    
28.09.2018 / 16:50