adding feature using REST API

619
0
11-13-2013 08:16 AM
ChiranjeeviGK
New Contributor III
Hi all

i have a feature layerEMPLOYEE

and i tried to add the feature using the REST API

http://services1.arcgis.com/6KARYenaCPY4jndv/ArcGIS/rest/services/employeeDetails/FeatureServer/0/ad...

and input as

{"geometry":{"x":13.25,"y":76.4},"attributes":{"employeeId":123,"Address":"#9/10, 2nd main, 7th Main, Vijaynagar,Bangalore,Karnataka,560040","employeeName":"Tester"}}


Where the geometry is the lat/long which i gave the India's some place lat/long

My Issue is:
1: It is showing some where near Africa.. it is because of spatial reference problem.. how can i get X and Y from Lat/Long
2: I have address as feature attribute, Which REST API to use to add the feature on the map

-Chiru
0 Kudos
0 Replies