Search APIs
Add Your API
YandexGeocoder API thumbnail

YandexGeocoder

API Overview

The Geocoder can get a geo object's coordinates from its address, or the reverse – determine the address from the coordinates.

Get a geo coordinates from its address, or determine the address from the coordinates.

YandexGeocoder Package

Yandex is a Russian multinational technology company specializing in Internet-related services and products. Yandex operates the largest search engine in Russia with about 65% market share in that country.The Geocoder can get a geo object's coordinates from its address, or the reverse – determine the address from the coordinates.

How to get credentials:

  1. Navigate to Developers Console.
  2. Create API app.

Custom datatypes:

DatatypeDescriptionExample
DatepickerString which includes date and time2016-05-28 00:00:00
MapString which includes latitude and longitude coma separated50.37, 26.56
ListSimple array["123", "sample"]
SelectString with predefined valuessample
ArrayArray of objects[{"Second name":"123","Age":"12","Photo":"sdf","Draft":"sdfsdf"},{"name":"adi","Second name":"bla","Age":"4","Photo":"asfserwe","Draft":"sdfsdf"}]

YandexGeocoder.getAddressByCoordinates

Convert a location's coordinates on the map to an address string.

FieldTypeDescription
coordinatesMapThe latitude and longitude of the find place.
apiKeyStringThe key obtained in the developer's office. Used only in the paid API version. Used only in the commercial version of the API.
centerMapMapLongitude and latitude of the center of the map in degrees.
searchAreaSizeStringThe length of the map display area by longitude and latitude (in degrees).For reverse geocoding, the centerMap parameter is ignored, and searchAreaSize is taken into account only if the kind parameter takes one of the following values: district. Wrong in orginal docs.
searchAreaRestrictionSelectA sign of a 'hard' limitation of the search area.
resultsNumberNumber of objects returned. The default is 10. The maximum allowable value is 500.
languageStringPreferred response language. List of supported values: tr_TR — Turkish (only for maps of Turkey); en_RU — United States; en_US — American English; ru_RU — Russian (by default); uk_UA — Ukrainian; be_BY — Belarusian;
toponymTypeSelectType of toponym (only for reverse geocoding). Acceptable values: house - house or building; street - street; metro - subway station; district - city district; locality - locality (city, town, village, etc.).
alternativeSearchStringIn this case, the borders of the area are defined as the geographical coordinates of the lower-left and upper-right corners of the area (in the order longitude, latitutude).
orderCoordinatesStringThe order coordinates are specified in (only for reverse geocoding).

YandexGeocoder.getCoordinatesByAddress

Convert address to coordinates.

FieldTypeDescription
addressStringThe exact address that you want to geocode.
apiKeyStringThe key obtained in the developer's office. Used only in the paid API version. Used only in the commercial version of the API
searchAreaSizeStringThe length of the map display area by longitude and latitude (in degrees).
searchAreaRestrictionListA sign of a 'hard' limitation of the search area.
resultsNumberNumber of objects returned. The default is 10. The maximum allowable value is 500.
languageStringPreferred response language.
alternativeSearchStringIn this case, the borders of the area are defined as the geographical coordinates of the lower-left and upper-right corners of the area (in the order longitude, latitutude).