Launch web version of Yandex Maps
Web version of Yandex Maps can be launched both from applications and website pages. When you launch it on a desktop computer, the map opens in the browser. The following URL scheme is used at launch:
https://yandex.ru/maps/
Yandex Maps can perform the following actions on launch:
Open map
Parameter |
Data type |
Description |
|
float,float |
Map center coordinates (longitude, latitude). |
|
int |
Map zoom. An integer from 1 to 19, where 1 is the least detailed map zoom (whole world), and 19 is the highest zoom possible. |
|
float,float |
Viewport. Longitudinal and latitudinal size of the viewport in degrees, comma-separated. For example, to set a viewport of 10.5 degrees, specify: The viewport center is set using the If |
|
string |
Map type and traffic information. Map type: Show road traffic: |
Note
If the map parameters are not passed in the URL, the parameters of the previous user session are used.
URL example:
https://yandex.ru/maps/?ll30.310182,59.951059&z12&lmap
HTML link example:
<a href="https://yandex.ru/maps/?ll30.310182,59.951059&z12&lmap">Map of St. Petersburg</a>
Add placemark
Parameter |
Data type |
Description |
|
float,float |
Placemark coordinates (longitude, latitude). If the ll parameter (map center) is not specified, the map is centered at the point specified in |
URL example:
https://yandex.ru/maps/?pt30.335429,59.944869&z18&lmap
HTML link example:
<a href="https://yandex.ru/maps/?pt30.335429,59.944869&z18&lmap">Summer Gardens</a>
Put several placemarks
Parameter |
Data type |
Description |
|
float,float |
Placemark coordinates (longitude, latitude). Coordinates of multiple placemarks separated by a tilde (~). |
|
float,float |
Map center coordinates (longitude, latitude). |
|
int |
Map zoom. An integer from 1 to 19, where 1 is the least detailed map zoom (whole world), and 19 is the highest zoom possible. |
URL example:
https://yandex.ru/maps/?ll=30.310182,59.951059&pt=30.335429,59.944869~30.34127,59.89173&z=12&l=map
HTML link example:
<a href="https://yandex.ru/maps/?ll30.310182,59.951059&pt=30.335429,59.944869~30.34127,59.89173&z=12&l=map">Summer Gardens</a>
Find objects
Parameter |
Data type |
Description |
|
string |
Text of the search query. To set the search area, specify the map center ll and the zoom level or viewport. If the search area is not specified, the parameters of the previous user session are used. |
URL example:
https://yandex.ru/maps/?ll=30.310182,59.951059&z=16&text=кафе%20с%20wi-fi
HTML link example:
<a href="https://yandex.ru/maps/?ll=30.310182,59.951059&z=16&text=кафе%20с%20wi-fi">Show cafes with Wi-Fi</a>
Open organization card
To open an organization card, use the following URL:
https://yandex.com/maps/org/{parameters}
Parameter |
Data type |
Description |
|
int |
Unique organization ID in the Yandex Maps app. Tip To find out an organization ID:
|
URL example:
https://yandex.ru/maps/org/1184371713
HTML link example:
<a href="https://yandex.ru/maps/org/1184371713">Museum of Soviet gaming machines</a>
Show What's here?"
Parameter |
Data type |
Description |
|
float,float |
Object coordinates. An object can be, for example, a street, public transport stop, or organization. |
|
int |
Map zoom. An integer from 1 to 19, where 1 is the least detailed map zoom (whole world), and 19 is the highest zoom possible. |
URL example:
https://yandex.ru/maps/?whatshere[point]=37.444076,55.776788&whatshere[zoom]=17
HTML link example:
<a href="https://yandex.ru/maps/?whatshere[point]=37.444075,55.776788&whatshere[zoom]=17">Residential complex</a>
Plot route
Parameter |
Data type |
Description |
|
float,float~float,float |
Coordinates of points on the route (latitude, longitude). |
|
string |
Route type: For example, if |
Note
If the route type is not set, the latest route type is used. If the route was not built, a driving route is used.
The map type cannot be passed in the URL: the map parameters are kept as in the previous user session.
URL example:
https://yandex.ru/maps/?rtext=59.967870,30.242658~59.898495,30.299559&rtt=mt
HTML link example:
<a href="https://yandex.ru/maps/?rtext=59.967870,30.242658~59.898495,30.299559&rtt=mt">Get directions</a>
Show a panorama from a specified point
Parameter |
Data type |
Description |
|
float,float |
Coordinates of the point of the panoramic view (longitude, latitude). |
|
float,float |
View direction. Set in degrees, in the format: Acceptable values: from 0 to 360 degrees. |
|
float,float |
Size of the viewport. Set in degrees, in the format: |
URL example:
https://yandex.ru/maps/?panorama[point]=37.444075,55.776788&panorama[direction]=228.970000,6.060547&panorama[span]=130.000000,71.919192
HTML link example:
<a href="https://yandex.ru/maps/?panorama[point]=37.444075,55.776788&panorama[direction]=228.970000,6.060547&panorama[span]=130.000000,71.919192">Panorama</a>
Data type
float,float
Description
Map center coordinates (longitude, latitude).
Data type
int
Description
Unique organization ID in the Yandex Maps app.
Tip
To find out an organization ID:
-
Select an organization on the map
-
Copy the oid parameter value from the page URL.
Data type
int
Description
Map zoom. An integer from 1 to 18, where 1 is the least detailed map zoom (whole world), and 18 is the highest zoom possible.
Data type
string
Description
Map type and traffic information.
Type of map: map
(Map), sat
(Satellite), skl
(Hybrid), pmap
(Public Map).
Show road traffic: trf
("traffic" layer). You can enable the traffic layer only, or combine it with some map type. In this case, the parameter values are comma-separated. For example: l=map,trf
.
Data type
float,float
Description
Placemark coordinates (longitude, latitude).
If the ll parameter (map center) is not specified, the map is centered at the point specified in pt
.
Data type
string
Description
Text of the search query.
To set the search area, specify the map center ll and the zoom level or viewport. If the search area is not specified, the parameters of the previous user session are used.
Data type
float,float~float,float
Description
Coordinates of the start and end points of the route (latitude, longitude).
Data type
int
Description
Unique organization ID in the Yandex Maps app.
Tip
To find out the organization ID, open the organization card in the mobile app and click upon in the upper right corner of the screen. The resulting link will contain the ID.
Data type
string
Description
Route type: auto
(driving route), mt
(public transport route), pd
(pedestrian route.)
For example, if rtt=mt
, then a public transport route is built.
Data type
float,float
Description
Coordinates of the point of the panoramic view (longitude, latitude).
Data type
float,float
Description
View direction.
Set in degrees, in the format: [direction azimuth, angle of elevation above the horizon]
.
Acceptable values: from 0 to 360 degrees.
Data type
float,float
Description
Size of the viewport.
Set in degrees, in the format: [horizontal size, vertical size]
.
Data type
float,float
Description
Viewport. Longitudinal and latitudinal size of the viewport in degrees, comma-separated. For example, to set a viewport of 10.5 degrees, specify: spn=10.5, 10.5
.
The viewport center is set using the ll
parameter (map center).
If z
(zoom) is already set, then spn
is ignored.
Data type
float,float
Description
Object coordinates.
An object can be, for example, a street, public transport stop, or organization.
Data type
float,float
Description
Map zoom. An integer from 1 to 18, where 1 is the least detailed map zoom (whole world), and 18 is the highest zoom possible.