I am wondering if anybody has an idea of using ArcGIS server locator service in FME for geocoding.
Your direction would be appreciated.
I am wondering if anybody has an idea of using ArcGIS server locator service in FME for geocoding.
Your direction would be appreciated.
There are Google and arcgisonline geocoder transformers on the FME store. Alternatively I have used OpenCage geocoder before which is useful and it shouldn't be too hard to hit that service using javascript, also it's open source.
https://store.safe.com/transformers/arcgisonlinege...
https://geocoder.opencagedata.com/
Do you mean this one?
You can generally use FME to leverage an API, though unless someone has already done the work for you like in the ArcGISOnlineGeocoder and GoogleGeocoder that @marko mentions, you'll need to build this as a workspace or custom transformer yourself. This session highlights some approaches:
@chad - Using custom locators would be very helpful for us too. Beyond just turning addresses into geometry (or reverse), I think there are a lot of use cases for this. As an example, our city necessarily has multiple locators and it would be very easy to compare results between them and find the differences. That would also allow easy testing of new locators.
ArcGIS for Server Geocode services all have a well documented REST API that you can easily hit from FME (with a little work handling JSON). You can geocode individual addresses or batches of addresses, or do reverse geocoding.
https://geocoder.opencagedata.com/
My preference would be to hit this service using python.
It should be fairly simple to add in your workspace attributes/parameters into the below code and receive the geocode position back (presumably in json or WKT but I haven't tested it). What do you have that you need to geocode? This free service only works with town names and post codes, you might find it isn't as accurate as some services out there but its free. You could use a pythoncaller to send the request off to their servers, you will need to request an API key from their site.
#!/usr/bin/env pythonfrom opencage.geocoder import OpenCageGeocoder
key = 'your-api-key-here'
geocoder = OpenCageGeocode(key)
query = "Krishnamurti Puram, Mysore, India"
result = geocoder.geocode(query)
I wonder if anyone has tried this with Portal for ArcGIS.
@geospatiallover Did you get this to work with Portal for ArcGIS?