Skip to main content
Question

Consuming arcgis locator service in FME for geocoding

  • January 28, 2016
  • 8 replies
  • 173 views

I am wondering if anybody has an idea of using ArcGIS server locator service in FME for geocoding.

Your direction would be appreciated.

8 replies

Forum|alt.badge.img+5
  • January 28, 2016

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/


davideagle
Contributor
Forum|alt.badge.img+21
  • Contributor
  • January 28, 2016

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:


Forum|alt.badge.img
  • January 28, 2016

@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.


bruceharold
Contributor
Forum|alt.badge.img+17
  • Contributor
  • January 28, 2016

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.


Forum|alt.badge.img+5
  • January 28, 2016

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)


Forum|alt.badge.img+5

I wonder if anyone has tried this with Portal for ArcGIS.


mapsgirl_cot
Participant
Forum|alt.badge.img+2

@geospatiallover Did you get this to work with Portal for ArcGIS?


bruceharold
Contributor
Forum|alt.badge.img+17
  • Contributor
  • May 27, 2021

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings