V
V
Vadim0282015-06-06 12:09:11
Google Maps
Vadim028, 2015-06-06 12:09:11

How to determine if a track passes through a given address?

There are tracks and waypoints in KML.
It is necessary to determine whether any track (from the available ones) passes through the address specified by the user.
Is there a ready-made service for solving the problem? Or where to "dig" for implementation?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pfg21, 2015-11-12
@pfg21

using a geocoder, you get the geocoordinates of the specified address
, for example, from the request nominatim.openstreetmap.org/search.php?q=%D0%9C%D0... you pull out the lat lon of the first response.
I don't think the track fits perfectly with the point, so you go through the points of the track and look at the distance from the point to the line, if it is less than xx meters / degrees, then the rivers pass.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question