Визиком карты

Service "Address".

Service "Address" allows to perform Address Search dy means of JavaScript.

Attention! This service requires authorization

Address search in the Visicom database is to be invoked by the use of remote requests mechanismVRemoteCall.

Examples:

Display in browser:

Source code:

var map;
map = new VMap(document.getElementById('viewport'));
var point = {lng: 30.5112, lat: 50.4550};
map.center(point, 12);
 
// ...
 
VMap.AUTH_KEY = "AUTHORITYKEY";
VRemoteCall.request("address", "Киев, Житомир",
function callback(layer) {
    map.add(layer);
    map.repaint();
}
);

In this example all the detected objects are represented on the map.

The method returns in callback method object-layer (VLayer) with the list of found objects. The information about address each object is located in the info property.
Depending on the type of the found object (city, street, house) information about coordinates can be different, namely, from a point object (VMarker) to complex line (VMultiLine).