Get Lat and Lon from an address

11-08-2019 11:09 AM
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
Esri Regular Contributor

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: 

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,


0 Kudos