Share a map
You can share a fragment of Yandex Maps, a place you have found or a route you have set.
To do this, follow these steps:
- Copy the address from the browser bar.
- Get the link.
- Get a code for embedding a Yandex Maps widget.
For more information on how to copy a link to a map you created yourself, see Map Constructor.
In other cases, use the Yandex Maps API.
Get a link
-
Click:
-
The
button on the map and select Share. -
Alternatively, you can click
in the panorama.
-
-
In the window that opens:
- Click the icon of the desired social network to publish the link automatically.
- Copy the link to share it with another user.
If you need to automatically publish links to Yandex Maps on your site that uses the visitor's location data, use the Yandex Maps URL scheme to create the link.
Embed a map widget
You can publish map widgets on your site or blog.
To do this, use the automatically generated code:
-
In the top-right corner of the page, click
. -
Select Share.
-
Copy the code from the Widget with map field to display the map or a specific place or route on your website.
To see how the map will look on your site, click Preview.
-
To use a localized map on your site, edit the embed code.
Add the lang parameter to the copied code to specify the language and region of the map interface.
The parameter value includes:
- Language code: ru — Russian, tr — Turkish.
- Region code: for example, RU — Russia, TR — Turkey.
For example, lang="tr_TR" means the Turkish language used in Türkiye.
For Russia, the region and language of the map interface are determined by the user's Yandex ID settings. For example, if the user's language in Yandex ID is Russian and they are viewing a map in Turkey that was created somewhere in RU, then the map will display in Russian, but be localized to Turkey.
Code example
-
The parameter is omitted:
<iframe src="https://api-maps.yandex.ru/frame/v1/-/CVh7YBYg?" width="560" height="400" frameborder="0"></iframe>If you don't specify the lang parameter, the region and language of the map interface are determined based on the map settings you had when generating the code.
-
The parameter is specified (English for Russia):
<iframe src="https://api-maps.yandex.ru/frame/v1/-/CVh7YBYg?**lang=en_RU**" width="560" height="400" frameborder="0"></iframe>Page URL: https://api-maps.yandex.ru/frame/v1/-/CVh7YBYg?lang=en_RU
If the lang parameter is specified, the region is dictated by its value regardless of where the map was created.
Supported values:
-
ru_RU: Russian, Russia
-
en_US: English, USA
-
en_RU: English, Russia
-
tr_TR: Turkish, Turkey
This parameter is similar to the "lang" parameter that is used in .
Note
For RU and TR, distance is given in kilometers. For the US, it's in miles.