2

I am new in implementing and using the location fields .

Need to know where can I find the Latitude__s and Longitude__s fields? Trying to bring this data from salesforce but cannot find what object they are in. Also how they are implemented and used.

2

Important to know is that they are compound fields, part of custom geolocation fields or the address fields.

This is also how you'll find them in the SOAP API:

Address field:

<element name="BillingAddress" nillable="true" minOccurs="0" type="tns:address"/>
<element name="BillingCity" nillable="true" minOccurs="0" type="xsd:string"/>
<element name="BillingCountry" nillable="true" minOccurs="0" type="xsd:string"/>
<element name="BillingCountryCode" nillable="true" minOccurs="0" type="xsd:string"/>
<element name="BillingGeocodeAccuracy" nillable="true" minOccurs="0" type="xsd:string"/>
<element name="BillingLatitude" nillable="true" minOccurs="0" type="xsd:double"/>
<element name="BillingLongitude" nillable="true" minOccurs="0" type="xsd:double"/>
<element name="BillingPostalCode" nillable="true" minOccurs="0" type="xsd:string"/>
<element name="BillingState" nillable="true" minOccurs="0" type="xsd:string"/>
<element name="BillingStateCode" nillable="true" minOccurs="0" type="xsd:string"/>
<element name="BillingStreet" nillable="true" minOccurs="0" type="xsd:string"/>

Custom GeoLocation field:

<element name="sdry__GeoCoordinates__Latitude__s" nillable="true" minOccurs="0" type="xsd:double"/>
<element name="sdry__GeoCoordinates__Longitude__s" nillable="true" minOccurs="0" type="xsd:double"/>
<element name="sdry__GeoCoordinates__c" nillable="true" minOccurs="0" type="tns:location"/>

Rest API returns the same combination of fields.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.