Find your content:

Search form

You are here

What fields does Latitude__c and Longitude__c must use?

 
Share

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.


Attribution to: PavanFoxPro

Possible Suggestion/Solution #1

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.


Attribution to: Peter Knolle
This content is remixed from stackoverflow or stackexchange. Please visit https://salesforce.stackexchange.com/questions/30217

My Block Status

My Block Content