W
W
WebforSelf2021-12-16 15:55:03
JavaScript
WebforSelf, 2021-12-16 15:55:03

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

3 answer(s)
F
freeExec, 2021-12-16
@WebforSelf

There is a normal API for the server side: https://yandex.ru/routing/doc/router/concepts/quic...

A
Alexandroppolus, 2021-12-16
@Alexandroppolus

https://ru.wikipedia.org/wiki/%D0%9E%D1%80%D1%82%D...
just take and calculate using the formula.

A
Alex_mos, 2021-12-16
@Alex_mos

Can help with the solution click

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question