Geopointe

Manually Schedule the Geocoder

We strongly recommend in our Post-Installation Instructions that you use the Schedule Geocoder button in Geopointe Setup to help keep your mapped objects up to date. The batch job runs hourly, checking three map objects per hour for updates or new records. This is as often as Salesforce allows us to schedule a batch job.

However, this isn’t the best model for every business. If you don’t expect a large influx of data, maybe you don’t need it to run that often. In contrast, maybe your organization works with so much new and updated data that the geocoder gets tied up and runs into itself. Neither scenario is desirable, and the best solution is to run the geocoder less frequently. To do that, you have to create a schedule in Salesforce Setup.

First, if you have a job running in Geopointe Setup, click Cancel Job.

Schedule-Cancel

Use the Quick Find to navigate to Apex Classes then click Schedule Apex. (In Classic, the pathway is Setup | Develop | Apex Classes. In Lightning, it is Platform Tools | Custom Code | Apex Classes). 

Schedule-Apex

Once on the edit screen, give the job a name, locate the Geocode_Schedule apex class, select which days you want it to run, and the time for it to run. If you have large batch jobs, consider the times when you want to run it. This may be something you want running when employees are not in the office. Click Save.

Schedule-Settings

In my example above, I set it to run on workdays weekly, and to start at 3:00 am. If you wanted it to run twice daily—perhaps once in the morning and once in the afternoon after daily data has been imported—you’ll need to create a second schedule just like this one.

This job can be monitored for errors in Setup | Monitoring | Apex Jobs. If it needs to be deleted, it can be accessed in Setup | Monitoring | Scheduled Jobs. For more information on how the geocoder works and the kind of information it returns, see our detailed document all about the Geocoder.