Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

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

Can I get the geographic position of a user using the Salesforce1 app, without the cellular network?

I want to get the user location when he visits a possible customer, for example. But what if he doesn't have access to the internet at the time? This would be used to improve their visiting route at ...
2
votes
1answer
34 views

Incorrect Longitude and Latitude

The Geolocation Longitude and Latitude coordinates I am getting out of Salesforce are not the same as the Google coordinates for the same address. When I load an Account or Contact address the Map ...
0
votes
1answer
37 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
0answers
16 views

Geolocation fields in Metadata

I have a bunch of postal codes in a metadata object (where they belong). Now I want to add a Geolocation field to this object but it seems I'm not able to choose this type. Is it even possible to use ...
2
votes
2answers
33 views

Distance between two places based on geolocation

I am trying to write a query to find contacts within a radius of 50 miles and here is the SOQL i have select Id,Name,mailingStreet,mailingState,mailingCity,mailingPostalCode,mailingcountry,...
1
vote
3answers
44 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 ...
0
votes
2answers
37 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
45 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
56 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 ...
1
vote
0answers
19 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 ...
3
votes
0answers
139 views

Cannot read property 'appendChild' of undefined

I want to show the geoposition on a leaflet map lightning component. I enter an Id and get geolocation data accordingly. When I first enter an Id everything works fine, for the second time it shows ...
0
votes
0answers
143 views

Notification not received for MarketingCloudSDK v5.1.1 Geofence Location

I have integrated Geofence Messaging in my application (both Android and IOS) but IOS can't received the message when enters or exits the geofence area. While Android is working fine. I followed ...
2
votes
1answer
35 views

Geolocation of all leads and accounts in Sales Cloud

my fashion organization is planning to buy Sales Cloud. One of the requirements of the sales men is to see in a map (Google Maps style) all leads and accounts (with type = "store") and also the ...
0
votes
3answers
320 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
0answers
24 views

Status Data Integration Rules is Skipped

good afternoon ! I have two doubts: 1 - Why some leads get skipped status in Data Integration Rules? 2 - How can i bulk update the leads that are with this status? Thanks,
0
votes
1answer
106 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 ...
-2
votes
1answer
30 views

Reverse geocoded address

Is it possible to get the address and map it into Account's standard addressess based on the long lat? I have a code which gets the current long and lat and updates the details of the account in ...
0
votes
1answer
36 views

MobilePush getting lat/long from user

so for iOS MobilePush, i have location based and outbound based push notifications working, and configured the following ETPush pushManager with proper services enabled, and other changes I need to ...
0
votes
0answers
78 views

iOS MobilePush GeoLocation Entry/Exit Not working for larger area

so been playing with MobilePush, in particular the location exit and entry based on geofence however, when we set a larger geofence, say north cal, a random (lat/long) pin with really large radius, ...
0
votes
0answers
30 views

Account Shipping Address Geocode Incorrect in Test Class

I have a test class where I'm updating the account's shipping address and I'm expecting it to return the address's geocode using the Account Data Integration Rule. It works in our Dev sandbox, but ...
0
votes
0answers
24 views

Activated Geo Code doesn't run some times

So i have recently activated data integration rules in my sandbox. When i change address the data integration rules run and update latitude and longitude but some times the latitude and longitude don'...
2
votes
0answers
44 views

How can i keep a track of someone visits the My site? [closed]

One item to be aware of the event is not triggered when a form is filled out but when someone visits the site. And when someone visit the my site in one day several times means how can i save/track ...
1
vote
0answers
267 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 ...
3
votes
0answers
162 views

Salesforce1 stopped supporting geolocation

I have a Visualforce page enabled for Lightning, which has one button that gets the geolocation in coordinates and shows the location in a Google map embedded in the page. This was working until last ...
0
votes
2answers
163 views

Retrieve Attributes of Mobile Push Locations

I was trying to use Mobile Push API to create Locations in Marketing Cloud. But I didn't understand how to use Location Attributes to pass Location-based parameters to the message context and/or ...
0
votes
1answer
55 views

Coordinates of few accounts are not updating on bulk insert and update through data loader

//Refactored code after getting inputs from @David public void HandleAfterInsert(){ system.debug(LoggingLevel.DEBUG, '***Inside after insert- ' ); for(Account account : newAccs){ ...
2
votes
0answers
157 views

Geolocation not working for certain locations

We have a strange issue with geolocations in Salesforce, We have activated the data integration and geolocation based on billing address. While this works well in many countries, it does appear that ...
2
votes
1answer
93 views

Account Billing/Mailing lat and long values are not populated in test data from integration rules

I have setup the necessary Account Data Integration Rules for the billing address but in a test context these values are not being populated. I can't find any documentation on when/how the values get ...
0
votes
0answers
187 views

Retrieve Mobile GPS Location and save latitude and longitude values on custom fields

I've found this reference on retrieving the mobile's GPS location using Salesforce mobile app: https://developer.salesforce.com/blogs/developer-relations/2010/07/html-5-geolocation-in-visualforce.html....
2
votes
2answers
200 views

Spring '18 no longer supporting Order by Distance and geolocation type

I just noticed that one of my queries is no longer working in my sandbox after the Spring '18 has been applied to that sandbox. In particular this is the error SF is returning: [object Object]: 'mi')...
1
vote
1answer
79 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&...
-3
votes
1answer
416 views

Unable to fetch latitude & longitude in apex

i have a requirement to provide distance between two objects with latitude and longitude. But i am getting null as per debug logs where i missed it. Apex Class: for (Opportunity opp:[Select Id,Name,...
0
votes
1answer
735 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,...
2
votes
1answer
137 views

Marketing Cloud SMS Push to users in market

We have some geofencing set up to push a message to users when they cross a boundary. We have a hurricane coming and we want to notify users who are in the city right now. Does anyone know of a way to ...
2
votes
1answer
277 views

Can't filter by geolocation field in SOQL [closed]

I'm trying to do a simple SOQL query to find all opportunities that have a null geolocation field, however, the query keeps blowing with: Save error: field 'Coordinates__c' can not be filtered in ...
1
vote
1answer
114 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
0answers
128 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 ...
0
votes
0answers
28 views

Pre-populate Geolocation compound fields in Standard New record form

We want to be able to pre-populate the Geolocation Latitutde/Longitude fields in the Standard New record page using URL hack in apex. However we will be creating different object records so the ...
1
vote
1answer
189 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
0answers
297 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
1answer
375 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 ...
0
votes
1answer
409 views

Using ESRI Maps in Salesforce via Javascript API

I am building a visualforce page that displays the geo-location of users in an ESRI Map (Not Google Map for reasons). The data is in a cusotm Location object with username, latitude and longitude. I ...
0
votes
1answer
268 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
53 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 (...
-1
votes
2answers
253 views

Hi, I am trying Execute the following code in Visualforce page to get the current Location, But output is not coming. Please check & provide solution

Link of the code: http://www.aspsnippets.com/Articles/Get-Current-Location-Latitude-and-Longitude-using-JavaScript-and-HTML5.aspx Code: <apex:page> <script type="text/javascript" src="http://...
1
vote
0answers
132 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 ...
4
votes
1answer
81 views

Multi-Route Processing

Business Case I work for a non-profit that uses volunteers to deliver meals to their clients. Based on their volunteer-recurrence schedule, and the client's meal-recurrence schedule, each volunteer ...