Get Lat and Lon from an address

654
1
11-08-2019 11:09 AM
JoseSanchez
Occasional Contributor III

Hello everyone,

I am looking for a map on the web may be an ArcGIS online map that will allow an user to enter an address and return lat,long coordinates for this address.

Any suggestions?

0 Kudos
1 Reply
by Anonymous User
Not applicable

Hi Jose,

By default ArcGIS Online Web Maps contain a geocode search feature that takes an address as input and returns the XY location on the map:

https://www.arcgis.com/home/webmap/viewer.html 

My guess is that you are looking to display the XY coordinates in the result's pop-up after searching for an address?

The geocodeAddresses—ArcGIS REST API: World Geocoding Service | ArcGIS for Developers operation returns XY coordinates, but it takes some customization to bring them into the search pop-up, as shown in this sample: Search with customization | ArcGIS API for JavaScript 3.31 and discussed on this GeoNet thread:  How to customize Search Widget to show feature pop-up? 

Hope this helps,

-Peter

0 Kudos