U
U
unlik2018-03-25 18:22:20
JavaScript
unlik, 2018-03-25 18:22:20

How to display different maps using the Yandex Maps api?

In general, using ymaps.geolocation.city, we determine the city and display various contact details.
But you also need to display a point on the map depending on the city. What is the best way to do this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Kirill Ushakov, 2018-03-25
@unlik

Yandex has a geocoder https://tech.yandex.ru/maps/geocoder/
You feed it an address (which you apparently have in your contacts), it returns you the coordinates.

A
Andrey Tsvetkov, 2018-03-25
@yellow79

Store at the same time the geo coordinates of the city center and generate a map through the same Yandex

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question