P
P
private132019-08-22 13:30:25
Yandex maps
private13, 2019-08-22 13:30:25

Nearest city?

Hello, I need help with the following question.
There is a list of cities where the company is present.
If a visitor enters the site from the city of presence, then he is shown the contact details of the company from this city.
If a visitor comes from a city where there is no company, how can you determine the nearest one ?
Preferably by means of Yandex or Google
Thank you in advance for your answer.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2019-08-22
@freeExec

You can build a matrix of distances to each office, if there really are not many of them. This is the right approach, but it can cost a pretty penny. In a straight line on the globe - quickly and angrily, but you can lose your face because of rivers and mountains.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question