I know there are many threads about calculating from lat/long to metric systems. This solves the first part of my problem.
The second (main part) of my problem is this:
- I have google maps as map app.
- I have a lat&long pair of a point
- I have a a metric distance, lets say 30meters.
- I need some point to do a sql query.
Why?
I have many records of POIs which can be located with this lat&long pair. I don't want to get all the results (reason: better performance).
Is there a way to do something like:
select * from myTable where lat> .... and lat < ... and long > ... and long < ...?
Is this possible? And if its, how do I get these values in ...
?
Regards!