Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question