Anonymous

Changes

From CMSC 420
722 bytes added ,  16:54, 30 September 2013
Created page with "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 or..."
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) ==
* x
* y

== Possible ''<output>'' ==
The output will contain one road tag which is the nearest road. This is an example of a road tag:
<code>
<road start="city1" end="city2"/>
</code>

== Possible ''<error>'' types ==
* cityNotFound

== ''<success>'' Example ==
<code>
<success>
<command name="nearestRoad" id="13">
<parameters>
<x value="1"/>
<y value="2"/>
</parameters>
<output>
<road start="Annapolis" end="Derwood"/>
</output>
</success>
</code>
editor
68

edits