This version of the page http://maps.visicom.ua/en/api-docs/vxmlapi/ (0.0.0.0) stored by archive.org.ua. It represents a snapshot of the page as of 2011-08-09. The original page over time could change.
Visicom Maps - detailed map of Kiev, Donetsk, Lvov, Kharkov, Odessa, Minsk, Gomel' and other cities of Ukraine and Belarussia

Visicom XML API

General provisions

Visicom XML API — simple protocol of interaction with Visicom platform which uses XML to encode its calls and HTTP as a transport mechanism.

Interaction with Visicom server occurs in synchronous manner. XML API client works by sending a valid XML document with POST request to Visicom server. In response client received the XML document that contains semantic and spatial data. In server response spatial data represents in text form or in raster Base-64 encoding.

For get authentication key (AUTHORITYKEY) you should send a letter to our email with the following information:

  • your company name and contact name;
  • site address (if in the design, then local address) and subject of site;
  • contact numbers;

Interaction scheme

  1. The sender creates a message represented as “valid” XML document. If the document contains symbols in Unicode, they shall be encoded in UTF-8.
  2. The sender creates HTTP connection to Recipient’s URL address.
  3. The sender sends HTTP POST inquiry containing generated XML document.
  4. The receiver checks the “validity” of sender’s document then generates the response.
  5. The receiver closes HTTP connection.

Example: MBR definition of group of objects

Request

POST / HTTP/1.1
User-Agent: Java/1.6.0_06
Host: maps.visicom.ua/xmlapi/1.0.2
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-type: application/x-www-form-urlencoded
Content-Length: 325
 
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<request>
    <authority key="AUTHORITYKEY"/>
    <method name="getMBR"/>
    <parameters>
        <database>World_ru</database>
        <objects>
            <id>4151257218867881</id>
        </objects>
        <points>
            <point
             lat="50.4552"
             lng="30.5114"/>
        </points>
    </parameters>
</request>

Response

HTTP/1.1 200 OK
Server: Visicom-RequestServer/1.0
Date: 18 Jan 2009 16:42:21 GMT
Content-Type: text/xml; charset=utf-8
Content-Length: 153
Pragma: no-cache
 
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response>
    <rectangle
     max_lat="50.45520014"
     max_lng="30.51139989"
     min_lat="50.45520014"
     min_lng="30.51139989"/>
</response>