I am receiving some JSON feed with this data
"geometryType": "esriGeometryPoint",
"spatialReference": {
"wkid": 102100,
"latestWkid": 3857
},
and set of coordinates like
"geometry": {
"x": -11696523.780400001,
"y": 4804891.0001000017
}
If there a way to convert this x and y to lat/lng which I can use in Google Maps?
I have read some references but there either I can`t see the answer, or it's goes very deep into GIS terminology which I just can't afford to learn at the moment.
Best Answer
You could use the ArcGIS server REST endpoint to convert to wkid 4326 (lat/lon). Here's a URL for one of Esri's sample servers:
https://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer/project?inSR=102100&outSR=4326&geometries=%7B%0D%0A++%22geometryType%22+%3A+%22esriGeometryPoint%22%2C%0D%0A++%22geometries%22+%3A+%5B%0D%0A+++++%7B%0D%0A+++++++%22x%22+%3A+-11696523.780400001%2C+%0D%0A+++++++%22y%22+%3A+4804891.0001000017%0D%0A+++++%7D%0D%0A++%5D%0D%0A%7D&f=HTML
Pasting the coordinate in google maps gives you this (Littleton, right?):
https://maps.google.com/?q=39.5785846502541+-105.071660830008
If you just need to convert the occasional coordinate this will work fine, but I guess as soon as it's thousands of coordinates, you are going to want to automate stuff.
As for the meaning of latestWkid, see here: https://support.esri.com/en/technical-article/000013950