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

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>
        <response
         detail="true"/>
        <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="310"
            name="Киев Ярославов Вал ул.">
                <points>
                    <point
                 lat="50.453287"
                 lng="30.507183"/>
                    <point
                 lat="50.452132"
                 lng="30.508587"/>
                    <point
                 lat="50.452132"
                 lng="30.508587"/>
                    <point
                 lat="50.451095"
                 lng="30.509895"/>
                </points>
            </edge>
            <edge
            length="569"
            name="Киев Стрелецкая ул.">
                <points>
                    <point
                 lat="50.451095"
                 lng="30.509895"/>
                    <point
                 lat="50.451828"
                 lng="30.510750"/>
                    <point
                 lat="50.451828"
                 lng="30.510750"/>
                    <point
                 lat="50.451933"
                 lng="30.510896"/>
                    <point
                 lat="50.452310"
                 lng="30.511247"/>
                    <point
                 lat="50.452501"
                 lng="30.511466"/>
                    <point
                 lat="50.452501"
                 lng="30.511466"/>
                    <point
                 lat="50.453758"
                 lng="30.512298"/>
                    <point
                 lat="50.453810"
                 lng="30.512466"/>
                    <point
                 lat="50.453810"
                 lng="30.512466"/>
                    <point
                 lat="50.454438"
                 lng="30.513440"/>
                    <point
                 lat="50.454562"
                 lng="30.513595"/>
                    <point
                 lat="50.454668"
                 lng="30.513679"/>
                    <point
                 lat="50.454668"
                 lng="30.513679"/>
                    <point
                 lat="50.455260"
                 lng="30.513747"/>
                    <point
                 lat="50.455415"
                 lng="30.513740"/>
                </points>
            </edge>
            <edge
            length="238"
            name="Киев Большая Житомирская ул.">
                <points>
                    <point
                 lat="50.455415"
                 lng="30.513740"/>
                    <point
                 lat="50.455434"
                 lng="30.514173"/>
                    <point
                 lat="50.455446"
                 lng="30.514711"/>
                    <point
                 lat="50.455407"
                 lng="30.516342"/>
                    <point
                 lat="50.455380"
                 lng="30.517112"/>
                </points>
            </edge>
            <edge
            length="326"
            name="Киев Владимирская ул.">
                <points>
                    <point
                 lat="50.455380"
                 lng="30.517112"/>
                    <point
                 lat="50.457038"
                 lng="30.517733"/>
                    <point
                 lat="50.457038"
                 lng="30.517733"/>
                    <point
                 lat="50.455841"
                 lng="30.517284"/>
                </points>
            </edge>
        </edges>
    </route>
</response>