Hi everyone!
We're trying to use the REST API to perform geoenrichment of custom polygons, but we're running into a block. We can find resources that provide examples for points, lists of points, and ArcGIS provided polygons (e.g., census tracts / zip codes) but we cannot find anything that tells us how to specify custom polygons using the REST API. I would love even just one example of the format the API request must be in! We've tried, for example:
response_json: {'results': [{'paramName': 'GeoEnrichmentResult', 'dataType': 'GeoEnrichmentResult', 'value': {'version': '2.0', 'FeatureSet': []}}], 'error': {'code': 10020007, 'message': "Parameter 'studyAreas' is invalid.", 'details': [" Reason:\r\n Invalid attribute 'StudyAreas'."], 'causes': [{'code': 10020049, 'message': "Invalid attribute 'StudyAreas'.", 'details': []}]}, 'messages': []}
Thanks everyone! I appreciate any the advice you can provide.
Julia
Solved! Go to Solution.
Hello,
It seems to me that you're missing the geometry parameter as in:
* ArcGIS location services Postman collection
* Data enrichment chapter in the Mapping APIs and location services guide
Best,
Anita
Hello,
It seems to me that you're missing the geometry parameter as in:
* ArcGIS location services Postman collection
* Data enrichment chapter in the Mapping APIs and location services guide
Best,
Anita
Hi Anita,
Thanks for the help!! I added in that "geometry" part and poked around some more, and it works!!!
Thanks so much!
Julia