Request format
All params
https://geocode-maps.yandex.ru/1.x
? apikey=<string>
& geocode=<string>
& lang=<string>
& [kind=<string>]
& [rspn=<boolean>]
& [ll=<number>, <number>]
& [spn=<number>, <number>]
& [bbox=<number>,<number>~<number>,<number>]
& [results=<integer>]
& [skip=<integer>]
& [uri=<string>]
& [format=<string>]
apikey |
Required parameter The key issued in the Developer's Dashboard. Note Key activation takes up to 15 minutes. |
geocode |
Required parameter Address or coordinates of the object being searched for. The specified data determines the type of geocoding:
Several formats for entering coordinates are available. |
lang |
Required parameter Language of the response and regional settings of the map. Record format
List of supported values:
If the parameter has a locale value that is not in this list, the service selects the language closest to the one set. Example: |
sco |
Only if the Possible values:
Default value: |
kind |
Only if the
If omitted, the API will choose the toponym type automatically. |
rspn |
Flag indicating whether the search scope should be restricted to the specified area. The area is defined by the
Default value: Note If the |
ll |
Longitude and latitude of the center of the search area. The span of the search area is set in the |
spn |
The span of the search area. The center of the area is set in the
Note If the |
bbox |
An alternative method for setting the search area. The borders are defined as the geographical coordinates of the lower-left and upper-right corners of the area (in the order "longitude, latitude"). Record format: Note If Ignored if the |
format |
Geocoder's response format — |
results |
Maximum number of objects to be returned. If the Default value: Maximum value: |
skip |
The number of objects to skip in the response, starting from the first one. If this parameter is set, the |
uri |
Additional information about the object. The parameter value is returned in the Geosuggest response. To use it in a request, specify a value instead of text and coordinates. |
Format for geographical coordinates in the request
Geographical coordinates in the geocode
parameter are set sequentially in one of the following formats:
Record format | Order of coordinates | Example |
---|---|---|
+-float, +-float | Longitude, latitude | 134.854, -25.828 |
float [direction], float [direction]* | Any | E134.854, S25.828 134.854E, 25.828S |
+-deg° mm' ss", +-deg° mm' ss" | Latitude, longitude | -25°49′41.1″, 134°51′15.88″ |
deg° mm' ss" [direction], deg° mm' ss" [direction]* | Any | 25°49′41.1″S, 134°51′15.88″E |
NMEA | Any | 2549.67,S, 13451.26,E |
* [direction] - The letter designation of one of the four directions: N, E, W, S. - Spaces are allowed between letters and coordinates.
Spaces, commas, or semicolons can be used as delimiters. Spaces are allowed on either side of the delimiter character.
Note
The ";" character should be encoded as "%3B".