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.

33 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8
votes
2answers
352 views

Error when setting “rendered” attribute on apex:mapMarker

I am trying to show/hide some map markers on an <apex:map> by assigning a boolean value coming from an Apex attribute to the rendered tag. However, I am receiving a compile error on save: ...
4
votes
1answer
751 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 ...
3
votes
0answers
177 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 ...
3
votes
0answers
185 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 ...
2
votes
1answer
90 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 ...
2
votes
1answer
54 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 ...
2
votes
0answers
214 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
0answers
310 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
74 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 ...
2
votes
0answers
360 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 ...
2
votes
0answers
276 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
0answers
14 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
31 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
296 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
144 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
170 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
158 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
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
2answers
111 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
26 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
25 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
68 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
25 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
22 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 ...
0
votes
0answers
25 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 ...
0
votes
1answer
137 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 ...
0
votes
2answers
199 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
68 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){ ...
0
votes
1answer
289 views

Geo Location, Location based push messages not working

I have recently upgraded my Android and iOS Apps with new ET journey builder versions.Totally followed the Learning App, but location based push messages not functioning as previous. I can see ...
0
votes
0answers
66 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 ...
0
votes
1answer
158 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
0answers
724 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 newSupply....
-2
votes
1answer
55 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 ...