Skip to content

Latest commit

 

History

History
25 lines (14 loc) · 1.4 KB

File metadata and controls

25 lines (14 loc) · 1.4 KB

Use REST in your web browser

You can perform simple HTTP GET requests with just a web browser. You will need your API key to use these examples. Go to your ArcGIS developer dashboard to get your API key. Copy your API key and replace the text YOUR_API_KEY in the following examples.

HTTP request

Geocode the location Palm Springs Convention Center

https://geocode-api.arcgis.com/arcgis/rest/services/World/GeocodeServer/findAddressCandidates?f=json&address=Palm+Springs+Convention+Center%2C+CA&category=POI&outFields=*&forStorage=false&token=<YOUR_API_KEY>

Replace the address text with any address, location, or point of interest you wish to geocode.

HTML form

Perform a geocode by submitting an HTML form. Enter an address or a point of interest, for example Palm springs convention center.

Get directions by submitting an HTML form. Use stops coordinates, for example -122.68782,45.51238;-122.690176,45.522054;-122.614995,45.526201.

JavaScript fetch

Perform a geocode using JavaScript on an HTML page. Enter an address or a point of interest, for example Palm springs convention center.

Get directions using JavaScript on an HTML page. Use stops coordinates, for example -122.68782,45.51238;-122.690176,45.522054;-122.614995,45.526201.