Questions tagged [geolocation]

The Geolocation field type allows for SOQL queries based on location and distance. Functions DISTANCE and GEOLOCATION support distance and location-based SOQL queries.

Filter by
Sorted by
Tagged with
1
vote
1answer
458 views

Geo location not visible

Hi I have used the below code but the map not showing in visualforce page. Code: <apex:page> <html> <head> <title>Geolocation</title> <style> ...
4
votes
1answer
374 views

System.Location class in Apex - why is it described in docs and why I can't use it in code?

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 ...
2
votes
0answers
364 views

Is there a way to use native features in Salesforce1?

I wonder if the APIs are available, using which we can use phone hardware: Camera GPS Storage This could help build some awesome application! I know this is not what Salesforce1 is built for. But ...
1
vote
0answers
55 views

Internal Service Error when using not null in Geolocation SOQL

I have the following SOQL query which uses a geolocation field called Location__c to get the nearest 100 accounts to a location. I want to exclude any records that have a null value for Location__c ...
3
votes
1answer
282 views

Is it possible edit Geolocation custom field in Inline mode?

I have custom field Location of Geolocation type for standard objects (Account, Contract, Lead etc). For example, I want this field to be editable. On Edit Layout it is editable by default. But ...
6
votes
2answers
2k views

Is there any way to have a formula field displayed on Standard Edit Page Layout?

I use a Standard Page Layout (Account, Contact etc). I use standard page edit view to edit and update object (like this) On Standard Display View Layout I use Formula field to display Location (as ...
1
vote
2answers
1k views

Code to find physical location from IP Address

I need to find out the physical location of a client based on his IP Address. I have been able to retrieve the IP Address. Is there a way to find the geographic location from that?
0
votes
1answer
270 views

Hitting future call limit with Geocoding trigger

This trigger seems to work pretty well for Geocoding accounts... trigger AccountGeocode on Account (after insert, after update) { system.debug('AccountGeocode trigger fired'); if(System....
2
votes
0answers
279 views

Create Geolocation field type using java code

I am using com.sforce.soap.metadata.FieldType and com.sforce.soap.metadata.CustomField classes to create custom fields using java code. Now I want to create a field which is type of geolocation in ...
0
votes
1answer
2k views

Google maps for SalesForce

I am trying to use Google Maps for my Organizations SalesForce account. We have around 100 users and they might access map frequently. Should I get any licence to use Google Map API ? I found this ...
0
votes
1answer
4k views

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 ...
2
votes
3answers
448 views

Geolocation field, inconsistent unit test results IDE vs. UI

I'm using the new Geolocation field data type and SOQL DISTANCE function in a Visualforce page. I'm using the SOQL with DISTANCE to retrieve records into a standardSetController. It works great - ...
5
votes
4answers
5k views

No such column Location__c using Geolocation field beta

I'm attempting to build a google map page that displays all sites within 5km of a certain point. I've added a Geolocation field called Location__c, and attempting to build a list of the sites in the ...
11
votes
3answers
3k views

Geolocation searching

I'm researching location search (ultimately on a Force.com site). For example's sake, the problem is to dynamically show a user what stores are w/in a certain distance (say miles) of a postal code ...