Skip to main content
Question

Sleep in FME?


Can you pause execution (sleep) in FME? I am using the HTTPFetcher to send an address to Google to get back geocoded XML and extracting lat and lng. I find that some of the lat lngs are blank; however, when I examine those that are blank and send  the url directly to Google through the browser, I always get back the correct XML.

 

 

I'm thinking that because the HTTP fetch is inconsistent in the time it takes, something gets overwritten. I also did geocoding with Google using Python, and put in a sleep for two seconds. A sleep in FME might help.

 

 

By the way, I used the Gisgraphy geocode service in FME and found that it gave incorrect results. That's why I'm using Google.

 

 

Thanks

3 replies

fmelizard
Contributor
Forum|alt.badge.img+17
  • Contributor
  • July 9, 2013
Hi,

 

 

Recently the decelerator transfomer was introduced, sound like something that might help.

  • July 9, 2013
I added the decelerator, slept for two seconds per feature, and got all of my lat / lngs.

 

 

Thanks!

fmelizard
Contributor
Forum|alt.badge.img+17
  • Contributor
  • July 9, 2013
Hi,

 

 

Your welcome.

 

You can also try the GoogleGeocoder from the FME store, it might simplify your ws.

 

 


Reply


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