Geolocation is a very handy field type in Salesforce that can be leveraged to specify the location of any objects such as Accounts, Contacts, Leads and any custom objects that represent physical locations such as Warehouses, Factories, stores and more.
Geolocation in principle is a compound field that comprises ‘Latitude’, ‘Longitude’ and counts towards Org limits as three fields where one is used for internal use.
Geolocation Fields are generally available in both Salesforce Classic and Lightning Experience and are available in all editions including Salesforce1.
Admins can use the Geolocation custom field type to create location fields on any objects in Salesforce.
Populating data in Geolocation Fields:
With Summer 16 release, auto-populating geocodes for addresses on Accounts, Contacts and Leads are made possible in Salesforce through geocode clean rules.
Latitude and Longitude data can also be populated in Salesforce through data import tools such as wizards and Data Loader.
Developers can also leverage SOQL, APIs, Workbench or any Geo-Coding service to auto-populate Latitude and Longitude information on records based on their address information.
Use Cases:
Geolocation fields are a perfect fit when implementing solutions to use cases such as
Considerations & Limitations:
Being a compound field, Geolocation field cannot be used directly in the below mentioned areas. We need to use the individual field components instead.
Some of the other limitations include: