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
2
votes
0answers
281 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 ...
1
vote
1answer
114 views

Geofencing push notifications in Marketing Cloud

Can i send a push notification when the contact enter the location and satisfy additional conditions, like for instance owns a membership card or age range? Basically I don't want to send to everyone ...
1
vote
1answer
243 views

How to refer Geolocation field type in visualforce page from custom object?

I am trying to refer Geolocation field type in visualforce page with InputField component, But it is showing the error. Vf page code: Note: here, Geo_Location__c is field name, object is object name ...
1
vote
3answers
59 views

Marketing Cloud SDK - geolocation fence error

I try to receive a push notification when I'm in a specific place but each time the Marketing Cloud SDK send my position to his API service it sent the request with a wrong syntax. Currently the ...
1
vote
1answer
2k views

How to calculate distance between two records

I need to calculate distance between Lead and Account, but I get this error: Method does not exist or incorrect signature: void GEOLOCATION(Decimal, Decimal) My code: for(Lead ld:[Select Id,...
1
vote
1answer
175 views

Geo-coordinates on billing address for account object non-existent

I am using the built in geolocation feature for the account object to provide geolocations for my account, however on some accounts the geolocation is null despite having a valid address To make ...
1
vote
1answer
459 views

Additional code for pushing geofencing messages

I just used the tool in marketing cloud to send a push message that a programmer wrote for us. At first, I successfully sent outbound messages to both iOS and Android. Then we asked him to implement ...
1
vote
1answer
660 views

Geolocation with LockerService

A simple code getting current user geolocation is strangely ... ignored: it doesn't go to the success callback, neither in the error callBack, so I really have no idea of the cause. As window....
1
vote
1answer
49 views

Geolocation Query [closed]

I have two lists within SFMC that both have latitude and longitude values. I need to be able to compare them and find the distance between them in miles, then include or exclude records based on the ...
1
vote
1answer
99 views

Order By clause using APEX Bind Variables in Geolocation SOQL gives GACK

So I was planning to use SOQL geolocation to fetch the nearest dealer to the location of our agent. To find nearest I am trying to use Order by clause along with geolocation. The SOQL is below List&...
1
vote
2answers
1k 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 ...
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?
1
vote
1answer
3k views

SOQL UNION Operator workaround

I currently have a page where I query a custom object (Projects) to filter the results using the Distance formula(calculating distance between two addresses). I display these results using a standard ...
1
vote
1answer
732 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. ...
1
vote
1answer
90 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 ...
1
vote
1answer
254 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 ...
1
vote
1answer
459 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> ...
1
vote
1answer
71 views

FSL How to Track Users Locations?

"When service resource tracking is enabled, the Field Service Lightning mobile app uploads the geolocation of app users to Salesforce at regular intervals." https://help.salesforce.com/articleView?id=...
1
vote
0answers
17 views

Adding User Geolocation to Task Record

I’m looking to add functionality to the new and edit Task layouts (specific to Salesforce Mobile), so that when a user completes a task their current location is added to a custom geolocation field on ...
1
vote
0answers
32 views

How can I update user goelocation to account record when selecting pin on map?

I have incorporated google map to display pins on a map for Account records. I am using navigator.geolocation.getCurrentPosition(function(position) to center the map when it load and to get the users ...
1
vote
0answers
317 views

Geolocation has been disabled in this document by feature policy

We have built a custom viusalforce page (testpage) to fetch and update current geolocation coordinates on the contact object. working fine on all the devices, but from the last one week, getting ...
1
vote
0answers
149 views

How to populate a record's geolocation within Salesforce1?

I'm working in a developing nation in a social work context, so traditional addresses don't exist so we use GPS cords. How would I capture geolocation data within the Salesforce1 from the user's ...
1
vote
0answers
457 views

Capturing user's current location from a Quick action standard layout [closed]

I have a created quick action on a custom object (Address). Below are the details: Object Name: Address Action Type: Create a record Target Object:Task The quick action has his layout set for ...
1
vote
0answers
183 views

Inaccurate coordinates on account fields

I'm experiencing inaccuracies on the longitude and latitude on the built in longitude and latitude fields in the account addresses. The inaccuracy is not just a rounding error, the results puts the ...
1
vote
1answer
184 views

How do I use Salesforce's Geocodes?

I've already activated "Clean Rules" Geocodes for Contact mailing Address in Salesforce. I understand from the links I've read that the geocodes don't actually show up unless through a custom field. ...
1
vote
0answers
364 views

Retrieving a User's Location from a GPS-enabled Phone in visualforce [closed]

I need to build a Visualforce page where a sales agent can see all his tasks and his current location on a google map. Now I know how to show the tasks as markers on a google map, but how can I ...
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 ...
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 ...
0
votes
1answer
348 views

Using Field Value in setEnpoint() URL

I am trying to send a request to a google api and I am using the following setEndpoint(): request.setEndpoint('https://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+...
0
votes
2answers
133 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
3answers
839 views

Getting lat/lng for person accounts

Based on my understanding the mailing address on a person account will not be auto geolocated as is the case with normal accounts. What is the easiest way to get a lat/lng for a person account? I ...
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
48 views

Geo-Coordinates in custom object

I need a latitude and longitude field in one of my custom object. I tried data integration rule but it is available only for account,contact and lead. How can i populate coordinate in custom object ...
0
votes
1answer
25 views

Fetching latitude longitude datat from image on IOS in SF1 App

I need to to fetch the Latitude and Longitude of Image captured or uploaded using SF 1 App.I am using EXIF to fetch the same in javascript(helper) While it is working on android , same does not work ...
0
votes
2answers
158 views

How to use Geocode field to display address info?

I have a custom field which is of Geolocation type. I just need to display the corresponding address information on the page. For ex, the field name is branch_location_id which contains the Lat Long ...
0
votes
1answer
80 views

Capture location through smart capture or form on custom cloud pages in salesforce marketing cloud

I want to capture location of customers via smart capture or custom form. As there is a huge list of locations (city,state), I want to integrate the same with google map or any other similar database ...
0
votes
1answer
325 views

Google Maps JavaScript API Usage Limits [closed]

I recently came accross an error in my production This page didn't load Google Maps correctly. See the JavaScript console for technical details. Upon looking into the console i found the below ...
0
votes
1answer
65 views

Manually override Geolocation Web to Lead API Value

We need to manually set/change the API Values of a Geolocation Field being used by web-to-lead. To populate the Geolocation field the web-to-lead form has the fields added like this GPS Location (...
0
votes
1answer
671 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
1answer
2k 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: -117....
0
votes
1answer
271 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....
0
votes
1answer
34 views

Web 2 lead latitude and longitude values are not inserted

I'm using a Web2Lead form, and on submit pass all input values. But when I try to insert latitude and longitude values, they are not inserted in SF record. I'm try to use different ways, but still no ...
0
votes
2answers
251 views

Error while retrieving location coords with navigator.geolocation.getCurrentLocation in LWC

So, I was just trying to get current location by using navigator.getlocation.getCurrentLocation method in Lightning Web Components. When I check if(navigator.getlocation), this returns true. But ...
0
votes
0answers
39 views

Geolocation not working on VF page in aura component

I have created a VF page that is used inside an iframe on my lightning component. The iframe has attribute allow="geolocation;". Geolocation doesn't work on it when I try to use either Esri map's ...
0
votes
0answers
27 views

Fetch location details of an image to geolocation field while uploading in lightning

I am trying to do a POC with the following details. I have a custom object related to Account CustomObject__c has a geolocation field which consists of Latitude and Longitude and a rich text area ...
0
votes
0answers
108 views

Field Service Lightning Location Tracker

I'm currently using Field Service Lightning. As a Dispatcher I would like for the travel time to be calculated depending where my technician is, or his home address. How can I make this possible? The ...
0
votes
1answer
27 views

How to store zipcode in salesforce sales cloud if I've latitude & longitude available?

We've build an Andoird App which store users location as latitude & longitude at the time of registration. This data is being pushed into salesforce sales cloud. Can I convert this piece of ...
0
votes
1answer
216 views

Contact Mailing Latitude & Longitude is zero despite map feature working

Looking for some help. I am trying to display geolocation on mailing address in Contact object. Any address I enter, the map renders perfect, but no Longitude or Latitude, I get nothing. I have ...
0
votes
1answer
174 views

Geolocation location fields in Contacts/Account

I know Salesforce has some custom hidden fields that stored geolocation coordinates based on the Mailing and Billing address fields. (and I believe this is how the plot Markers in the inline Google ...
0
votes
1answer
166 views

Display nearest shop to one user thanks to ampscript and latitude longitude

I have 2 database with - the geographical address of users (latitude and longitude) - the geographical address of my shops (latitude and longitude) I want to display in an email the 3 nearest shops ...