You need to sign in to do that
Don't have an account?

One-time batch geocode of all Salesforce records
I am looking for a service that will do a one-time geocoding of all records of a particular Salesforce object, saving these gecoordinates into a cutom field on the record. Preferably, I would like to do this without having to export the Salesforce information, for example into a csv file.
Does anyone know of a good app or service to do this? I have done some research myself but would like to look into as many options as possible.
Does anyone know of a good app or service to do this? I have done some research myself but would like to look into as many options as possible.
See if this helps! This works for updating Account object's lat and long. Modify accordingly. Make sure that you account for Apex callout limitations. You can use any geo code service that you have subscribed to. I am using google's api which is free with some limitations..
All Answers
See if this helps! This works for updating Account object's lat and long. Modify accordingly. Make sure that you account for Apex callout limitations. You can use any geo code service that you have subscribed to. I am using google's api which is free with some limitations..
Additionally, in trying to use your code, I received the following error:
You need to create 3 classes from above code.
As far as api limitation is concerned, google api costs $0.5 for 1000 calls. Which is awesome for your needs.
I needed to make one edit to your code to handle a null scenario.
Changing line 16 from:
to