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
0answers
13 views

Possible to show “nearby” campaigns on lead/contact by geo?

My goal is to show a list of related campaigns on a lead/contact profile that are "nearby" to the person based on their postal code. Ideally, I would add a custom field to the campaign object that ...
3
votes
0answers
43 views

is it possible to fill address lead fields automatically with geolocalization from within salesforce1? [closed]

I would want customize my salesforce1 app so that we can add a new lead and auto-fill the address lead fields with a location button using the geolocation feature of my mobile device. Would it be ...
2
votes
1answer
43 views

Where can I find the Latitude__s and Longitude__s fields Or how to capture Latitude__s and Longitude__s via api

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 ...
2
votes
1answer
49 views

How to deploy a Layout with a Related List containing a Geolocation field using ant/the Metadata API?

Using ant, when doing a retrieve() of a Layout containing a Related List, containing a Geolocation field (see abridged, sanitised example below), the relatedLists node contains two entries for the ...
1
vote
1answer
59 views

Update latitude and longitude through batch apex

When i run my batch apex latitude and longitude are not getting updated in customer object. i need to update 50000 record.. getting lat and long using google API i able to request 2500 record per IP. ...
0
votes
1answer
35 views

Geolocation setup, for single -36.922970, 174.792207

We are wanting to use Geolocation in an effort to get physical address more precise at the account level, but it is split into Latitude and Longitude when you enter in the geocode which is erroring ...
5
votes
2answers
151 views

Detect the location of the user of web to lead

In web to lead, you can input any address that you want.I need to detect the exact location or just the state or city of the user who used the web to lead. Is this possible? any ideas how? Thanks in ...
1
vote
1answer
32 views

App error After restarting the device

I am using Et SDK 3.5.0, After I enabled the Geofence feature on the app, it will generate an error after restarting the device and opening the app. E/ERROR>>>﹕ Initialization did not ...
0
votes
0answers
12 views

Live Agent reports “location fields need to separated”

Live Agent reports "location fields need to separated" Having the city,state, country in one field makes it impossible to run a report that groups states. Why didnt they separate those tables into 3 ...
0
votes
0answers
41 views

App is taking long time to open after restart the android device

Recently we have added the Geofence feature in to our app. After adding this feature, we have noticed the app is not responding for long time after restart the phone. This was only happening on ...
0
votes
2answers
49 views

How to determine a Geolocation is within a buffer distance from another Geolocation using apex without using SOQL?

I have two location fields of type Geolocation named point1 and point2. I have one radius field . i need to determine whether point2 is located within radius distance from point1 or not. How can this ...
0
votes
1answer
62 views

how to determine a Geolocation is within radius distance from another Geolocation?

I have two location fields of type Geolocation named point1 and point2. I have one radius field of type Number(6,2). i need to determine whether point2 is located within radius distance from point1 or ...
0
votes
2answers
61 views

how to submit a geolocation field via the API create command?

I'm starting out using the enterprise API for PHP with a simple create command... $createResponse = $mySforceConnection->create($insertArray, 'customobject__c'); My $insertArray includes a value ...
1
vote
2answers
295 views

navigator.geolocation.getCurrentPosition fails in Visualforce page

I ran into a rather bizarre issue today with the HTML5 Geolocation API. I'm working one a Visualforce page in Salesforce1 that grabs the user's current location and passes it up to an Apex Controller ...
6
votes
3answers
91 views

SOQL Query to retrieve Contacts from an Account sorted by the distance between the contact location and the account location

I'm trying to create a SOQL query to retrieve Contacts from Accounts, with the contacts for each account sorted by the distance between the contact location and the account location. This is what I ...
1
vote
0answers
73 views

Get user's Geolocation by capturing the IP address from the open made on the email

Is this possible in Exacttarget? Has anyone try this yet?
2
votes
1answer
370 views

How do you get the lat/long of an apex:mapMarker that has been geocoded in Visualforce?

As of API 32.0, it's easy to create a map in Visualforce with <apex:map> and <apex:mapMarker> even takes string addresses as a position and will geocode the address automatically. You can ...
3
votes
2answers
320 views

BillingAddress in query generate error

I have a query like below in an Apex Class in Sandbox. query = 'SELECT Id, Name, BillingAddress, BillingLatitude, BillingLongitude FROM Account WHERE Name = \''+ name +'\' AND '; query += ...
5
votes
1answer
408 views

Are latitude and longitude saved automatically?

I'm wanting to use the BillingLatitude and BillingLongitude fields attached to my Account object in a workflow rule, but I can't seem to get them to work. I pulled an export via Data Loader of the ...
2
votes
1answer
48 views

geolocation when user logs in or logs out?

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 ...
0
votes
1answer
144 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
424 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
246 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
121 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 = ; ...
1
vote
1answer
97 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 ...
6
votes
1answer
469 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
234 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
266 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
204 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 ...
2
votes
1answer
760 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
176 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
187 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
75 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
31 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
114 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
300 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
196 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
1k 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
2k 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
497 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
486 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
209 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'); ...
4
votes
1answer
234 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 ...
9
votes
3answers
1k 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
649 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, ...
23
votes
1answer
2k 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
217 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 ...
9
votes
3answers
316 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
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 ...
-1
votes
1answer
806 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 ...