Answer the question
In order to leave comments, you need to log in
PHP: How to implement route intersection in path?
There are 2 cars.
One left point A, the other left point B.
At some point on their way, for example, they can meet. How to determine in what place, after what time two cars collided?
I plan to use php, google/yandex/osm maps.
On js I can visualize the intersection. But the topic with the calculation in the backend is of interest.
Answer the question
In order to leave comments, you need to log in
If you use OSM, then there are ways to find out the route between points: Routing/online_routers
I would recommend OSRM , you can read about API on github .
Well, then, along the paths obtained, look for intersections and try to understand who in what time period can be in them.
Any on which you can do all the intended functionality.
The most important thing here is to have an intelligent mathematician who will calculate everything and make the right prices so that you can take as much money from honest people as possible!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question