How i can to make to calculate distance and time between my current location and near polyline?, below I attached a sample image
Asked
Active
Viewed 202 times
0
-
The figure seems misleading. Is the target a polyline (i.e. a connected sequence of individual lines) or a functional (polygonal or similar) curve? – dhke Jul 04 '18 at 16:33
-
It would be a tour in google maps, as the gogole maps route creates, the idea is that from my current location I found the near point of the line created in the route – Matteo Jul 04 '18 at 18:39
-
In that case, sounds much the same as [Distance from a point to a polygon](https://stackoverflow.com/questions/10983872/distance-from-a-point-to-a-polygon). Note that the JTS implements the [minimum distance for all supported geometry types](http://locationtech.github.io/jts/javadoc/org/locationtech/jts/geom/Geometry.html#distance(org.locationtech.jts.geom.Geometry)), in case you want to re-use an existing library. – dhke Jul 04 '18 at 18:50