Select to view content in your preferred language

how convert gps lat/long to x/y coordinates in arcgis javascript api?

6479
1
06-05-2016 08:43 AM
CloudingSoft
Regular Contributor

Hi I'm importing from an external system directions with GPS coordinates but they are, and my system uses default WGS84

how I can convert GPS to WGS84 with javascript api?

for example:

   

AddressLat GPSLong GPS
Sgto Palma 881 VILLA BOSCH Argentina-34.581677-58.578784
Calle 823 N°2323 SAN FRANCISCO SOLANO Argentina-34.7680377960205-58.3254852890968
Lavallol 3325 PB "C" CAPITAL FEDERAL Argentina-34.600729 -58.499633
Paris 2186 PABLO PODESTA Argentina-34.5721319317818-58.6165076494217
Marco Avellaneda 1687 REMEDIOS DE ESCALADA Argentina-34.721101-58.410526
0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus

Fabien,

  If you are using a esri basemap then your maps spatial reference is 102100 (web mercator) and you would just use webMercatorUtils.geographictowebmercator:

esri/geometry/webMercatorUtils | API Reference | ArcGIS API for JavaScript