[SalesForce] What fields does Latitude__c and Longitude__c must use

Latitude_c and Longitude_c are 2 fields when i want to use google maps in my salesforce account. What data type do i need to use for two of them.
Can any one help me to integrate with salesforce to google maps.

Best Answer

You can use a Geolocation field. It is a compound field that consists of a Longitude and Latitude.

For example, if you create a custom Geolocation field called Location__c you will automatically be able to access the Longitude and Latitude in your code as follows:

Location__Longitude__s and Location__Latitude__s.

You can look at the Geolocation Field Overview for more information.

Related Topic