Skip to main content
Question

Consuming arcgis locator service in FME for geocoding

  • January 28, 2016
  • 8 replies
  • 227 views

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

Your direction would be appreciated.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

8 replies

Forum|alt.badge.img+5
  • 68 replies
  • 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+22
  • Contributor
  • 578 replies
  • 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
  • 3 replies
  • 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
Supporter
Forum|alt.badge.img+19
  • Supporter
  • 353 replies
  • 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
  • 68 replies
  • 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)


geospatiallover
Participant
Forum|alt.badge.img+6
  • Participant
  • 70 replies
  • April 13, 2016

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


mapsgirl_cot
Participant
Forum|alt.badge.img+5
  • Participant
  • 1 reply
  • May 27, 2021

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


bruceharold
Supporter
Forum|alt.badge.img+19
  • Supporter
  • 353 replies
  • May 27, 2021