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

learn more… | top users | synonyms

0
votes
1answer
18 views

Salesperson current location find in Salesforce

We have the number of salesperson and we would like to monitor the daily track location of the each salesperson from the single location(Via VF page). How to achieve this? Is there any appexchange ...
0
votes
1answer
20 views

Value outside of valid range when trying to save latitude/longitude on Geolocation field

This is the error I'm getting. System.DmlException: Insert failed. First exception on row 0; first error: NUMBER_OUTSIDE_VALID_RANGE, DC_geocode: value outside of valid range on numeric field: ...
2
votes
1answer
33 views

returning distance in soql select

Has anyone found a way to use the DISTANCE function in a SELECT phrase. I've seen how to use it in the WHERE and ORDER BY clauses, but what I'm trying to do is something like... SELECT id, name, ...
2
votes
1answer
19 views

How to set geocode custom field?

I know how to set the Lat/Lng on standard Geocoding fields, but let's say I have Geocode__c on a custom object. Do I set the Lat/Lng by simply doing: CustomObjectInstance.Geocode__c.Latitude__c = ; ...
0
votes
0answers
29 views

How to use what3words API in Salesforce to convert w3w address to coordinates

I am using what3words (http://what3words.com) to save locations in Salesforce, by simply copying the w3w address from their app and pasting it into Salesforce using the mobile app. I want to then ...
5
votes
1answer
97 views

Use GPS on a device to determine geolocation inside salesforce.com custom object

I've been looking for a way to capture the geolocation from a devices (iphone, ipad, etc) GPS and set the location value on a custom object. Looking to add an interactive google map or something to ...
3
votes
2answers
52 views

Calculating Map Driving Distance?

I have a salesforce geolocation field that i've put in coordinates. Is it possible to be able to get driving distance from that field? Or would i have to do it with google maps API? There was ...
3
votes
3answers
58 views

Is “Maps and Location (New!)” missing in the setup of Developer Orgs?

In Production- and Sandbox-Orgs (on EU0) there is a menu-entry in the setup called Maps and Location (New!) It is located between "Tab Names and Labels" and "Home" As an unfortunate this menu ...
0
votes
0answers
54 views

Visual force Error-System.TypeException: Invalid decimal

i have written code in apex while saving the Geo location in my detail page. While doing this an error is coming on this particular line.It throw an error on my particular this code ...
0
votes
0answers
32 views

Getting geolocation in login flow

I am using the login flow which has been released as part of Winter'15 release. I would like to pass the geolocation of the logged in person (using javascript HTML5 Geolocation API) to visual flow as ...
2
votes
1answer
180 views

Enable VisualForce Map Component apex:map

I have found to my delight that there is now a standard map component. However, it is apparently not enabled for my org. How do I enable them? Is this feature still in beta? All the listed features ...
1
vote
1answer
89 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
70 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 ...
2
votes
0answers
38 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
19 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
3answers
63 views

Geolocation in a List Controller?

I've successfully used geolocation in a list controller: public class NearbySiteProgramListCon { // ApexPages.StandardSetController must be instantiated // for standard list controllers public ...
1
vote
0answers
92 views

Is it possible to use the setHeader method on HttpRequest Class to set the referer?

Using an Apex callout to Google Maps geocoding API, I want to authorize narrowly within Google to protect the client ID from being reused by anyone else. I believe the referer header needs to match ...
3
votes
1answer
120 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 ...
5
votes
2answers
713 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 ...
3
votes
1answer
522 views

How to display Location part of Address field type

Is there any way to display Geolocation part of Address field type in edit or display mode? Account object contains specific BillingAddress field of Address type (is in beta). Also, as mentioned ...
0
votes
2answers
165 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?
4
votes
1answer
240 views

Find nearest branch from ZIP code entered by customer

We need to calculate the distance between the ZIP code entered by customer and the nearest branch (Branch is an object) to that ZIP code address. The Lat and Long values are calculated for both ZIP ...
0
votes
1answer
153 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'); ...
3
votes
1answer
141 views

Display a count of records within 15 miles of a subscriber ZIP code

I have an ExactTarget question. I have a data extension of _subscribers. One of the fields is their zip_code I have another data extension of _widgets which includes the widgets' zip_code1 I also ...
6
votes
1answer
695 views

can geolocation fields be used to calculate and display distance?

I have a geolocation field setup on an object and want to be able to display the distance from another location in miles on a Visualforce page. I see with the new geolocation fields you can use ...
2
votes
2answers
362 views

Is it possible to use the DISTANCE SOQL function without a GEOLOCATION field, or some other approach?

I want to make a SOQL call to "near me" filter the ACCOUNT records server-side. (Too many to bring down and filter on the client). It would seem that using DISTANCE function in the call would suit, ...
20
votes
1answer
1k views

What formulae does the Geolocation Distance use?

Forgive me if this is a bit extremely academic in nature, but I was wondering how Salesforce goes about determining the distance between two pairs of latitude and longitude? When I've looked at this ...
2
votes
0answers
175 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 ...
8
votes
3answers
228 views

Multiple Geolocation targets within a single SOQL query

Afternoon, I need to search for all objects within X miles of a set of known geo-located lat-longs. I've been looking at the geolocation features of SF but I don't see any mention of using multiple ...
0
votes
1answer
958 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 ...
-1
votes
1answer
373 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
296 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 - ...
6
votes
4answers
3k 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 ...
9
votes
3answers
2k 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 ...