The Geolocation custom field allows you to create a field that identifies a location by its latitude and longitude. You can then use the Geolocation field with the DISTANCE and GEOLOCATION formula functions to calculate distances between locations.
Limitations of Geolocation Field:
- Geolocation is a compound field that counts toward your organization’s limits as three custom fields: one for latitude, one for longitude, and one for internal use.
- History tracking is not available for geolocation fields.
- Geolocation fields are not supported in custom settings.
- Geolocation fields are not available in reports, dashboards, validation rules, Visual Workflow, or workflow and approvals.
- Geolocation fields cannot be searched.
- Geolocation fields are not available in Schema Builder.
- DISTANCE and GEOLOCATION formula functions are available only when creating formula fields and in Visual Workflow.
- Geolocation is supported in Apex only through SOQL queries, and only at the component level.