YandexGeocoder

FREE
By raygorodskij
Updated 5 months ago
Mapping
8.2/10
Popularity Score
284ms
Latency
99%
Success Rate

YandexGeocoder API Documentation

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

View API Details
POSTgetAddressByCoordinates
POSTgetCoordinatesByAddress
POSTgetAddressByCoordinates

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

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
coordinatesMAP
REQUIREDThe latitude and longitude of the find place
Optional Parameters
searchAreaRestrictionSELECT
OPTIONALA sign of a `hard` limitation of the search area. Use with alternativeSearch or searchAreaSize + mapCenter.
centerMapMAP
OPTIONALLongitude and latitude of the center of the map in degrees.
orderCoordinatesSELECT
OPTIONALThe order of coordinates (only for reverse geocoding). Possible values ​​are:Longlat - longitude, latitude (default);Latlong - latitude, longitude.
resultsNUMBER
OPTIONALNumber of objects returned. The default is 10. The maximum allowable value is 500.
languageSTRING
OPTIONALPreferred response language.Example - en_RU.
toponymTypeSELECT
OPTIONALKind of toponym.
searchAreaSizeSTRING
OPTIONALThe length of the map display area by longitude and latitude (in degrees).Example - 0.552069,0.400552;
apiKeySTRING
OPTIONALThe key obtained in the developer`s office. Used only in the paid API version.
alternativeSearchSTRING
OPTIONALIn this case, the borders of the area are defined as the geographical coordinates of the lower-left and upper-right corners of the area (Example - 36.6,54.6~38.6,56.6).
Code Snippet
unirest.post("https://YandexGeocoderraygorodskijV1.p.rapidapi.com/getAddressByCoordinates")
.header("X-RapidAPI-Host", "YandexGeocoderraygorodskijV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://YandexGeocoderraygorodskijV1.p.rapidapi.com/getAddressByCoordinates
Request Method: POST
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://YandexGeocoderraygorodskijV1.p.rapidapi.com/getAddressByCoordinates")
.header("X-RapidAPI-Host", "YandexGeocoderraygorodskijV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication