Question

Sleep in FME?

  • 9 July 2013
  • 3 replies
  • 21 views

Badge +1
  • Participant
  • 126 replies
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

Userlevel 4
Badge +13
Hi,

 

 

Recently the decelerator transfomer was introduced, sound like something that might help.
Badge +1
I added the decelerator, slept for two seconds per feature, and got all of my lat / lngs.

 

 

Thanks!
Userlevel 4
Badge +13
Hi,

 

 

Your welcome.

 

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

 

 

Reply