Select to view content in your preferred language

Accessing GeoJSON API Service

1814
2
05-08-2014 05:30 AM
landonReed1
New Contributor
What would you recommend as the best way to access the GeoJSON API for a given feature class?

I tried an AJAX get request with and without JSONP and neither seemed to work due to the same-origin policy.  Are there plans to make these services CORS-compliant?
Tags (2)
0 Kudos
2 Replies
SimonLiu
Deactivated User
Hi,

I haven't tested this, but if JSONP and CORS aren't supported by ArcGIS Open Data, then you will need to use a server-side proxy page:

https://github.com/Esri/resource-proxy
https://developers.arcgis.com/javascript/jshelp/ags_proxy.html

Simon
0 Kudos
landonReed1
New Contributor
This seems to be resolved as of June 23, 2013.
0 Kudos