Answer the question
In order to leave comments, you need to log in
How to draw a point to a line on the map?
There are coordinates of the starting and ending points of the route, as well as turns, and there is also the coordinate of the car. Due to the error, the vehicle coordinate may not be on the route line, but slightly to the side. How can I determine the nearest point on the route, which corresponds to the coordinate of the car, so that I can "pull" it to the route?
I store all data in postgresql, and the service is written in nodejs. Maybe there are specialized libraries that can be used for this task?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question