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


Valid children




Code sample

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

Was this information helpful? Send us your comments.