HiArcPy recordsets (and featuresets) can be converted to and from JSON using the .JSON and .AsShape methods, so that part is easy, within a script or model embedding a script. You can geocode a recordset (treat it like a table in other words) or load it into an in_memory table to geocode it.If you are using ArcGIS Online there is a REST endpoint for batch geocoding, but don't go down that track unless you need to.http://resources.arcgis.com/en/help/arcgis-online-geocoding-rest-api/Regards
You're going to want to tackle this problem using regular expressions. There may already be modules out there written to parse JSON objects. You'll need to hunt around a bit.http://docs.python.org/2/library/re.html
HiRegexes are a wormhole you might not want to dive into.The canonical approach to geocoding an array of addresses would be to write them into a table (a text file is OK, provided it has recognised delimiters and header) and geocode the table.Regards
Hi, i am trying to currently working on a assignment that would require me to perform geocoding against a JSON object containing a array of addresses. im looking at using python to achieve this functionality. Initial research on arcgis api has yielded little results so i was wondering is there anyone on the forum can point me in the correct direction? is it do-able?ps. im a complete newbie to python, just picked up the language a few days ago so go easy on me guys~
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.