The get_lat_long business rule is not populating latitude and longitude


The get_lat_long business rule, which queries Google Maps, does not populate the latitude and longitude fields for a new location in the Location [cmn_location] table. This business rule is included in the base system and is used to obtain the latitude and longitude of an address for a location record.



Due to a change in relevant terms of service, a new framework is in place that allows users to take advantage of the global longitude and latitude functionality by obtaining the appropriate license key from Google or other geocoding services such as Yahoo, Bing!, US Govt. For information regarding the change in TOS from Google Maps API, please refer to Using Google Maps in the ServiceNow product documentation.

Alternatively, other geocoding services can be used to take advantage of the auto-population of longitude and latitude. There is no specific recommendation as to which service to use; however, the framework of using HTTPAdaptor will remain basically the same.

For additional information, refer to Google Maps Plugin properties in the ServiceNow product documentation. 

Article Information

Last Updated:2020-09-25 07:28:35