S
S
Station 722018-10-14 17:47:36
Google Maps
Station 72, 2018-10-14 17:47:36

Is there a free service for calculating the distance between cities?

There is a task - to make for the user a choice of two cities, a choice of the type of transport (for example: a gazelle, a Kamaz, etc.) and multiply the distance by the tariff of this transport. Never worked with cards. Are there free services? Ready-made plugins in WordPress are also suitable.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Malfos, 2018-10-14
@cjstress

For example here:
https://tech.yandex.ru/maps/jsbox/2.1/deliveryCalc...
Here is one of the solutions:
dimik.github.io/ymaps/examples/2.1/delivery-calculator
https://github. com/dimik/ymaps/tree/gh-pages/examp...

X
xmoonlight, 2018-10-14
@xmoonlight

This is not the distance, but the length of the route.
Routes must be built using Google and entered into the database (gradually, not all at once).

S
Station 72, 2018-10-14
@cjstress

I think that for now I will look towards YandexApi https://tech.yandex.ru/maps/jsbox/2.1/deliveryCalc...
There is a request limit of 25,000 per day.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question