Differences
This shows you the differences between two versions of the page.
|
|
en:pro:remoteapi:codesamples:address_coords [17/04/2013 13:42] zuve |
en:pro:remoteapi:codesamples:address_coords [29/11/2013 13:31] |
{{indexmenu_n>10}} | |
====== Address detection ====== | |
| |
To find address by specified coordinates, use the request [[../apiref/gis/get_locations|get_locations]]. As an example, let's detect the address of the point with coordinates 27.516643322771575 EL and 53.91069937030936 NL. | |
| |
<code> | |
<your_wialon_pro_address>/ajax.html?svc=gis/get_locations& | |
params={ | |
"points":[{ | |
"x":27.516643322771575, | |
"y":53.91069937030936 | |
}] | |
}&ssid=<your_sid> | |
</code> | |
| |
Response: | |
<code javascript> | |
{ | |
"locations": ["Skryganova st. 6, Minsk"] | |
} | |
</code> | |
| |
Input data of this command is an array of coordinates, it gives us an opportunity to get location of many point in one request. | |