Oracle Maps Cloud - Route Server
RouteServer Drive Time Polygon Requests using pre-geocoded addresses
Drive Time Polygon Request: Preference 'fastest'
World Trade Center, San Fransisco CA (start location)
<?xml version="1.0" standalone="yes"?> <route_request id="1" route_preference="fastest" compute_drive_time_polygon="true" drive_time_polygon_cost="60" cost_unit="second" pre_geocoded_locations="true"> <start_location> <pre_geocoded_location id="1"> <edge_id>724791175</edge_id> <percent>0.0</percent> <side>L</side> </pre_geocoded_location> </start_location> </route_request>
Drive Time Polygon Request: Preference 'shortest'
Nashua, NH (start location)
<?xml version="1.0" standalone="yes"?> <route_request id="2" route_preference="shortest" compute_drive_time_polygon="true" drive_time_polygon_cost="5" cost_unit="mile" pre_geocoded_locations="true"> <start_location> <pre_geocoded_location id="1"> <edge_id>22325991</edge_id> <percent>0</percent> <side>R</side> </pre_geocoded_location> </start_location> </route_request>
Drive time Polygon Request: unit not consistent with preference (defaults to minutes for fastest)
<?xml version="1.0" standalone="yes"?> <route_request id="19" route_preference="fastest" road_preference="local" compute_drive_time_polygon="true" drive_time_polygon_cost="20" cost_unit="meters" pre_geocoded_locations="true"> <start_location> <pre_geocoded_location id="1"> <edge_id>22161661</edge_id> <percent>.5</percent> <side>L</side> </pre_geocoded_location> </start_location> </route_request>
Drive time Polygon Request: unit not consistent with preference (defaults to miles for shortest)
<?xml version="1.0" standalone="yes"?> <route_request id="20" route_preference="shortest" road_preference="highway" compute_drive_time_polygon="true" drive_time_polygon_cost="10" cost_unit="second" pre_geocoded_locations="true"> <start_location> <pre_geocoded_location id="1"> <edge_id>22161661</edge_id> <percent>0.5</percent> <side>L</side> </pre_geocoded_location> </start_location> </route_request>
Drive Time Polygon Request: drive time cost exceeds the limit (60 min for fastest, 60 miles for shortest) (RSE-0170)
<?xml version="1.0" standalone="yes"?> <route_request id="21" route_preference="fastest" road_preference="highway" compute_drive_time_polygon="true" drive_time_polygon_cost="120" cost_unit="min" pre_geocoded_locations="true"> <start_location> <pre_geocoded_location id="1"> <edge_id>22161661</edge_id> <percent>.5</percent> <side>L</side> </pre_geocoded_location> </start_location> </route_request>
Drive Time Polygon Request: missing drive time cost (RSE-0168)
<?xml version="1.0" standalone="yes"?> <route_request id="21" route_preference="fastest" road_preference="highway" compute_drive_time_polygon="true" cost_unit="min" pre_geocoded_locations="true"> <start_location> <pre_geocoded_location id="1"> <edge_id>22161661</edge_id> <percent>.5</percent> <side>L</side> </pre_geocoded_location> </start_location> </route_request>