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

getRoute

Getting automobile route along several points taking into account traffic prohibitions.

Request's scheme

Move scheme

Parameters

Parameter Description
<authority> contains unique identifier that defines access level to the service.
<database> database name to which inquiry is made.
<point> points according to which route is made, type attribute specifies type of the point: start, stop, finish. The points are specified in geographic coordinates (WGS84).

If <response> value «detail» is equal to «true», it will result in more detailed representation of route.

Examples

Request

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<request>
    <authority key="AUTHORITYKEY"/>
    <method name="getRoute"/>
    <parameters>
        <database>World_ru</database>
        <points>
            <point
            lat="50.4530"
            lng="30.5066"
            type="start"/>
            <point
            lat="50.4559"
            lng="30.5169"
            type="finish"/>
        </points>
    </parameters>
</request> 

Response

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>                
<response>                
    <route>                
        <edges length="1444">            
            <edge        
            length="487"    
            name="Киев Ярославов Вал ул.">    
                <points>    
                    <point    
                 lat="50.453287"
                 lng="30.507183"/>
                    <point    
                 lat="50.452132"
                 lng="30.508587"/>
                </points>    
            </edge>        
            <edge        
            length="895"    
            name="Киев Стрелецкая ул.">    
                <points>    
                    <point    
                 lat="50.451095"
                 lng="30.509895"/>
                    <point    
                 lat="50.451885"
                 lng="30.510815"/>
                    <point    
                 lat="50.452501"
                 lng="30.511466"/>
                    <point    
                 lat="50.453810"
                 lng="30.512466"/>
                    <point    
                 lat="50.454668"
                 lng="30.513679"/>
                </points>    
            </edge>        
            <edge        
            length="375"    
            name="Киев Большая Житомирская ул.">    
                <points>    
                    <point    
                 lat="50.455415"
                 lng="30.513740"/>
                </points>    
            </edge>        
            <edge        
            length="513"    
            name="Киев Владимирская ул.">    
                <points>    
                    <point    
                 lat="50.455380"
                 lng="30.517112"/>
                    <point    
                 lat="50.457038"
                 lng="30.517733"/>
                    <point    
                 lat="50.455841"
                 lng="30.517284"/>
                </points>    
            </edge>        
        </edges>            
    </route>                
</response>