XML element: <getRoute>

The <getRoute> element contains the route information. To display route information in a map, you must place the starting and ending locations in two <location> elements in the <getRoute> block. You can use the x and y attributes, or the aliases lon and lat, in a <location> element that you nest within the <getRoute> block.

Valid parents

<lbs>

Valid children

<location>

Attributes

None

Code sample

<lbs>
    <getRoute>
        <location x='-8052237' y='4346518'
         label='Waterloo, ON' description='Waterloo, Ontario, Canada' />
        <location lon='-7569792' lat='4542349'
         label='Ottawa, ON' description='Ottawa, Ontario, Canada' />
    </getRoute>
</lbs>

Was this information helpful? Send us your comments.