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

ll

float,float

Map center coordinates (longitude, latitude).

z

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.

spn

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: 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.

l

string

Map type and traffic information.

Map type: map (Map), sat (Satellite), skl (Hybrid).

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.

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

pt

float,float

Placemark coordinates (longitude, latitude).

If the ll parameter (map center) is not specified, the map is centered at the point specified in pt.

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

pt

float,float

Placemark coordinates (longitude, latitude).

Coordinates of multiple placemarks separated by a tilde (~).

ll

float,float

Map center coordinates (longitude, latitude).

z

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>

Parameter

Data type

Description

text

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

oid

int

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.

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

whatshere[point]

float,float

Object coordinates.

An object can be, for example, a street, public transport stop, or organization.

whatshere[zoom]

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

rtext

float,float~float,float

Coordinates of points on the route (latitude, longitude).

rtt

string

Route type: auto (Driving route), mt (Public transport), pd (Pedestrian route), bc (Bicycle route).

For example, if rtt=mt, then a public transport route is built.

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

panorama[point]

float,float

Coordinates of the point of the panoramic view (longitude, latitude).

panorama[direction]

float,float

View direction.

Set in degrees, in the format: [direction azimuth, angle of elevation above the horizon].

Acceptable values: from 0 to 360 degrees.

panorama[span]

float,float

Size of the viewport.

Set in degrees, in the format: [horizontal size, vertical size].

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>