The get_lat_long business rule that fires when updating or creating a new location is failing on the following line:

var point = google_getLatLong(address);

When attempting to add Logging statements to this script, the variable point is always returning as "0".

This is happening regardless of whether the user has a Google API key in place. No error is being output, just the latitude and longitude on the record will not update.

Steps to Reproduce 

  1. Go to the following URL, and follow the directions to create an API Key: https://developers.google.com/maps/documentation/javascript/tutorial.
  2. Go to System Properties > Google Maps.
  3. Enter your API Key into the Map key from Google property.
  4. Go to User Administration > Locations > New
  5. Enter the following test information and click Submit

Name: Test Address
Street: 4810 Eastgate Mall
City: San Diego
State / Province: CA
ZIP / Postal Code: 92121
Parent: California

The business rule, get_lat_long should automatically populate the the Latitude and Longitude fields, but this is not occurring.



 There is a fix available for this issue in Berlin Patch 12 and Calgary Patch 2. Upgrading to either of these versions will correct this problem.


While this may not be ideal, as it requires manually input, latitude and longitude values can be determined manually, and physically entered into the fields. When this is done, locations are displaying as expected on maps. The following site can be used to help you determine the latitude and longitude of an address.


Related Problem: PRB585787

Seen In

Aspen Patch 2
Berlin Patch 12
Berlin Patch 5 Hot Fix 1
Berlin Patch 7

Fixed In

Berlin Patch 12
Calgary Patch 2
Dublin EA 0

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2016-03-31 16:21:56