Cert++
Close

Geolocation custom fields

Key Takeaway

A Geolocation field is a read-only compound field, so you change its value through its latitude and longitude components. Support for the compound field and its components varies by feature.

A Geolocation custom field stores a location as a latitude and longitude pair, so you can calculate distances between places. It is a compound field: one field built from separate latitude and longitude components. Most of the tricky behavior comes from knowing where the compound field works and where you must use its components instead.

Latitude and longitude values

Users specify a location in a Geolocation field by its latitude and longitude. Latitude values must be between -90 and 90. Longitude values must be between -180 and 180.

Salesforce can automatically add or update Geolocation fields, but only when all three of these conditions are true:

  • The org uses Developer, Professional, Enterprise, Unlimited, or Performance Edition.
  • The record is an Account, Contact, Lead, or WorkOrder record.
  • You have enabled the geo data integration rule for each object.

For all other objects and editions, you must set latitude and longitude using SOQL, the SOAP or REST API, or a geocoding service. You can find geocoding services on AppExchange.

Platform App Builder Study Guide

Checklist progress

0/340Learned

Given a scenario, determine the considerations when selecting or changing a field data type.

0/19

Text and long-text field types

Learn this concept

Number, currency, and percent fields

Learn this concept

Date, Date/Time, and Time fields

Learn this concept

Checkbox versus Yes/No picklist

Learn this concept

Email, Phone, and URL field types

Learn this concept

Global picklist value sets

Learn this concept

Record types and picklist values

Learn this concept

Auto-Number field configuration

Learn this concept

External ID and unique field types

Learn this concept

Geolocation custom fields

Learn this concept

Formula versus stored field types

Learn this concept

Classic encrypted text fields

Learn this concept

Field history tracking

Learn this concept

Blocked custom field type changes

Learn this concept

Prepare for the Exam

Play Today's Certle

Study Community

Ask questions and get the latest info from other Platform App Builder studiers. 757 members and growing.