Oracle Maps Cloud - XML Interface
Home
Sample Web Application
JSON Interface
JavaScript API
Map Styles
Demos
Mapping request
<?xml version="1.0" standalone="yes"?> <map_request title="Oracle LBS MAP" basemap="world_map" datasource = "elocation" width="640" height="480" bgcolor="#a6cae0" antialiase="false" format="PNG_STREAM"> <center size="0.15"> <geoFeature render_style="m.star" radius="1600,4800" label="Pier 39" text_style="t.Street Name" > <geometricProperty typeName="center"> <Point srsName="SDO:8307"> <coordinates>-122.4112063,37.8090528</coordinates> </Point> </geometricProperty> </geoFeature> </center> <!-- <legend bgstyle="fill:#ffffff;stroke:#ff0000" profile="MEDIUM" position="SOUTH_EAST"> <column> <entry text="Map Legend" is_title="true" /> <entry style="M.STAR" text="center point" /> <entry style="M.CITY HALL 3" text="cities" /> <entry style="M.CITY HALL 4" text="big cities" /> <entry is_separator="true" /> <entry style="C.ROSY BROWN STROKE" text="state boundary" /> <entry style="L.PH" text="interstate highway" /> <entry text="County population:" /> <entry style="V.COUNTY_POP_DENSITY" tab="1" /> </column> </legend> --> <!-- <themes> <theme name="theme1" min_scale="5.0E7" max_scale="0.0"> <jdbc_query datasource="mvdemo" jdbc_srid="0" spatial_column="geometry" render_style="MDSYS:C.RED" >SELECT geometry from us_counties</jdbc_query> </theme> </themes> --> </map_request>
Geocoding request
<?xml version="1.0" standalone="yes"?> <geocode_request vendor="elocation"> <address_list> <input_location id="0"> <input_address match_mode="relax_street_type"> <us_form2 street="1 Main Street" city="San Francisco" state="CA"/> </input_address> </input_location> </address_list> </geocode_request>
Response format:
XML
JSON
Routing request
<?xml version="1.0" standalone="yes"?> <route_request id="0" route_preference="fastest" road_preference="highway" return_driving_directions="true" distance_unit="mile" time_unit="minute"> <start_location><input_location id="1" ><input_address> <us_form2 street="2200 Southwood Dr" city="Nashua" state="NH" /> </input_address></input_location></start_location> <end_location><input_location id="2" ><input_address> <us_form2 street="1 Oracle Dr" city="Nashua" state="NH" /> </input_address></input_location></end_location> </route_request>
Response format:
XML
JSON
Use Geometry Id:
true
false
Speed-limit request
<?xml version="1.0" standalone="yes"?> <speedLimitRequest requestId="0002" unit="kmph"> <location id="1291" longitude="-93.2857" latitude="45.1705"/> <location id="211" longitude="-93.24049" latitude="46.69592"/> <location id="376" longitude="-71.46006" latitude="42.71004"/> </speedLimitRequest>
Response format:
XML
JSON
Traffic-speed request
<?xml version="1.0" standalone="yes"?> <trafficSpeedRequest requestId="0006" unit="kmph"> <location id="1291" longitude="-93.2857" latitude="45.1705" requestTime="08 Feb 2017 15:00"/> <location id="211" longitude="-93.24049" latitude="46.69592" requestTime="09 Feb 2017 10:00"/> <location id="42" longitude="-103.31349" latitude="20.6308" requestTime="10 Feb 2017 09:00"/> </trafficSpeedRequest>
Response format:
XML
JSON
Status request
<?xml version="1.0" standalone="yes"?> <admin_request request_type = "get_status"> </admin_request>