Hello! Previously, not particularly worked with GPS coordinates. Now there was a task to determine on the server whether the machine is with the user (the user sends the coordinates to the server) inside the Moscow Ring Road or he has already crossed it (in the external direction). Surely the problem is typical and there is some typical solution. I would be grateful for any tips. Thank!
- 2Imagine that the Ring Road is perfectly round. Find out the coordinates of the center of this circle. Next is math. There will be an error, but you are not launching nuclear warheads? :) - Sublihim
- Here's a solution for you: finding the distance by car (driving parameter) If anyone can, then make an improvement of the code ... although I think there is nowhere else to improve - Tests test
|
1 answer
If you can get points of the Moscow Ring Road polygon, you can use the application with Google Maps Point on Polygon . And if not, then Sublihim's advice is this.
- Hello. I used your advice, I took my points (manually). Accuracy arranged. Thank. - Alexey Igumnov
|