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
- Go to System Properties > Google Maps.
- Enter your API Key into the Map key from Google property.
- Go to User Administration > Locations > New.
- 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
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