NearestRoad
From CMSC 420
Will output the nearest road to the specified point in the spatial map. Ties will be broken asciibetically by the name of the start then end city.
Parameters (In output order)[edit]
- x
- y
Possible <output>[edit]
The output will contain one road tag which is the nearest road. This is an example of a road tag:
<road start="city1" end="city2"/>
Possible <error> types[edit]
- cityNotFound
<success> Example[edit]
<success>
<command name="nearestRoad" id="13">
<parameters>
<x value="1"/>
<y value="2"/>
</parameters>
<output>
<road start="Annapolis" end="Derwood"/>
</output>
</success>