M
M
Maxim Grechushnikov2014-10-31 14:01:17
OpenStreetMap
Maxim Grechushnikov, 2014-10-31 14:01:17

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

2 answer(s)
R
red_led, 2014-10-31
@red_led

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.

I
Ildar Gizetdinov, 2016-12-30
@game802

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 question

Ask a Question

731 491 924 answers to any question