At first I've found out that I can't refer SObject field with type Geolocation directly, I get

Data type not supported: Location

But I can access mySObject__Latitude__s and longitude.

I've tried to use Location class in code and it's not compiled. I've tried to do that in many API versions of a class.

Is that class available in any API version? If not - why is it described in docs? And why when I call describeSObject and get fields of SObject, I get SoapType location which is not supported?


Yes. I believe the class is part of Spring '15 update and your code is not using Spring '15 or your org does not yet have Spring '15.

New Classes - Spring '15 Update


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.