Answer the question
In order to leave comments, you need to log in
How to calculate distance using Yandex map?
The calculation of the distance on the map in km is required.
That is, there is a fixed address and there is a dynamic address.
We enter the address into the input and it calculates how many km from the fixed address to the entered address.
I thought to use Yandex maps for this business, but the calculation itself does not need to be shown on the map, it is enough to display just the number of km.
I found this sandbox:
https://yandex.ru/dev/maps/jsbox/2.1/route_panel_c...
Do I understand correctly that Yandex does not have an implementation in php? Only write in js?
Answer the question
In order to leave comments, you need to log in
There is a normal API for the server side: https://yandex.ru/routing/doc/router/concepts/quic...
https://ru.wikipedia.org/wiki/%D0%9E%D1%80%D1%82%D...
just take and calculate using the formula.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question