Questions tagged [google-location-services]
The google (android) specific api of location-services, which is used to determine your approximate location. Your location could be determined using data from cellular, Wi-Fi or Global Positioning System (GPS) networks.
231
questions
0
votes
0
answers
42
views
Google Chrome Invalidating Cookies
I use a extension for python called LocationSharingLib that can perform automation with specific locations shared with my google account. The process is, you export your Google Cookies to a file and ...
1
vote
1
answer
126
views
Kotlin -FusedLocationClient.requestLocationUpdates LocationRequest Param Error
I'm trying to add a LocationRequest as the first parameter to fusedLocationClient.requestLocationUpdates but I keep getting an error
None of the following function can be called with the arguments
...
0
votes
0
answers
15
views
Is Google Maps locations Page for Wordpress website
Would like a Google Maps page that shows places I have been. Maybe either from history data or places I save. Would also like to list places I would like to visit as saved locations. And ability to ...
0
votes
0
answers
75
views
Android LocationServices respond only one time
I want to implement a logger, which stores the location of the client after a certain time or when the position is changed. When i am starting the logger, it serves the location only one time. When i ...
0
votes
0
answers
45
views
Getting location when the app is closed using fusedLocationProviderClient
I am currently working on a location-based reminder app.
Obviously, the should send a notification when the user is close to a location he set.
For that, I am using a foreground service - which starts ...
-3
votes
1
answer
174
views
Android kotlin code for getting the current location details?
Please provide me the android kotlin example code for getting the current location using FusedLocationProviderClient?
-2
votes
1
answer
315
views
Does Google expose API for Find My Device service?
Does Google expose API for Find My Device service?
I would like to build a NodeJS backend to extract the location of my friends` phone using Google Find My Device service (using their gmail email).
Of ...
-1
votes
1
answer
148
views
Reverse Geocode Locations in Google My Maps (Custom Map Locations to Street Addesses)
I have a custom map in Google's "My Maps" with a list of locations. What is the easiest way to reverse geocode these to the street addresses? i.e. I would like to export the data as a list ...
0
votes
1
answer
197
views
Play Services Locatio v21.0.0 - cannot be cast to ResolvableApiException
I updated Google Play Services Location from
implementation "com.google.android.gms:play-services-location:20.0.0"
to
implementation "com.google.android.gms:play-services-location:21.0....
0
votes
0
answers
276
views
How apps are getting locations when Background Restrictions are turned on?
Some android devices have options to restrict apps in the background to save battery consumption. If I will turn on this option, my app and its background service will be killed. Some apps like Uber, ...
-2
votes
1
answer
99
views
Ascii characters on findplacefromtext API
I have to get many google places ids and data given (City, Country, Province), the data that I have are mainly are names, for example São Paulo, Brazil the thing is that since the google locations API ...
3
votes
0
answers
3k
views
Why does FusedLocationProviderClient.getCurrentLocation() always return a null object?
I am trying to get the location whenever a user clicks a button. I have the code below but the outcome of "location" always is null. I am running this on an emulator in Android Studio and ...
1
vote
1
answer
94
views
Google Place API Flutter syncing with custom city database table
I am working on a taxi booking app where routes between cities are predefined in the database with pickup and drop city.
Without google place API things are working fine.
Now I want to make a dropdown ...
-1
votes
1
answer
777
views
Google Api key location and address solution
I am developing a mobile app and website that allow users to advertise their items only in the UK. However, I don't want the return address to show the full address of the seller on the advert but ...
0
votes
1
answer
94
views
Google Location distance calculation using python dataframes
I am trying to tease out the dates that I was in a certain area (within a mile or so) using Google Location data and Python Pandas Dataframe.
First convert to latitude from latitudeE7:
with open(...
0
votes
1
answer
2k
views
Enabling search feature in google maps using Android Studio
I was trying to implement a simple search bar in google maps that points the map's camera to the location that is entered in the search box, I've attached the code but whenever I run it, The ...
2
votes
2
answers
368
views
Memory leak with Location update with fusedLocationProvider
Most of the common suggestions is, as it seems leaks are coming from context, use application context and detach location call from activity lifecycle. I did both previous thing and also later. But ...
2
votes
0
answers
161
views
How to get current location on chinese phone?
I use Goole play service location APIs and fusedLocationClient.requestLocationUpdates(locationRequest,locationCallback,looper);
to get current location.
But sometimes it get a last location on Chinese ...
0
votes
1
answer
549
views
How to get all Google Adwords locations programmatically?
I recently started to use Google Adwords API, and trying to figure out how to load all Google locations(geotargets)? I can see that there is csv file available on their page with all locations - https:...
0
votes
0
answers
436
views
Google Maps / Autocomplete and Flask form using flask_wtf
I'm using for my forms flask_wtf and Jinja2 so when I have an error the page is not submitted and the error appears below the field - except for one field which is the address because we used Google ...
1
vote
1
answer
3k
views
How to track user location in background, react native?
I am using the react-native-geolocation-service package, and everything works like a charm. But now I am required to track a users location both in the foreground and in the background. I was ...
1
vote
2
answers
662
views
Can't get location without opening google maps on android studio
Basically I noticed this weird reaction in the app, I get location is null however if I exit the app and open google earth map, request my location and re enter the app the location service will work ...
1
vote
1
answer
504
views
How does google search get a precise location stronger than ip address
I am wondering how google search tracks the precise city location, as it seems stronger than simply locating an IP address. Basically, from the IP to location services I am using, I get an approximate ...
-1
votes
1
answer
43
views
Google don't allow watch location for longer period anymore?
I have an app in which I am tracking user location like Uber. It works fine in the foreground. But in the background it works only for few minutes. After that, it gets stop.
But it starts send ...
0
votes
0
answers
82
views
Bluetooth scanning and Android location permissions policy
I have an Android app that scans for Bluetooth beacons, I run it as a foreground service and show a notification when scanning. Now, my question is if I start scanning for beacons with a background ...
66
votes
10
answers
33k
views
Is 'constructor LocationRequest()' deprecated in google maps v2?
I stumbled upon this message recently, and I was pretty sure that this constructor wasn't deprecated in prior versions to 18.0.0, but I cannot find information anywhere that this one has been ...
2
votes
0
answers
300
views
What is the unit of distance parameter in Google Takeout Location history JSON files?
Here's a snippet from Google Takeout Location history file.
I'm supposing that distance provided by Google is in meters. So when I divide it by 1000, I get 5.69 km. So far so good.
But when I browse ...
2
votes
0
answers
34
views
Is there any restricion when using LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY in foreground service?
When app running in foreground and activity is visible to the user then using LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY in a bound service I am able to receive location updates in the bound ...
0
votes
2
answers
164
views
Unable to get getStatusCode of locationSettings unless mSettingsClient.checkLocationSettings is executed
Is there any way to know if LocationSettingsStatusCodes is equal to RESOLUTION_REQUIRED without having to call mSettingsClient.checkLocationSettings all the time? May be from location object of ...
0
votes
1
answer
210
views
LocationSettingsRequest dialog to enable GPS
From past few days I am looking for a solution but unable to find any. I am working on a situation when the google location accuracy is toggled off for android 9+ then the application should prompt ...
1
vote
1
answer
2k
views
Flutter : How to convert to longitude and latitude to plus code (open location code) and vice versa
I have just developed an app using dart and flutter which I can obtain latitude and longitude of the location. My app can handle this. But I want to convert this longitude and latitude to open ...
-1
votes
1
answer
81
views
Detect when user enter circle
I am working on a app based on google maps.
I added a circle to the map ( https://ibb.co/PhZy0t6 ) and I have been tring to detect if the user entered the circle.
The user is a marker I added with the ...
1
vote
3
answers
4k
views
Flutter get User's Country without Manual Permission
I have a Blog App where I write Bussiness Content for Global as well as some country-specific content. Like Special posts for India, Indonesia, etc.
That's why I need a way to find from which country ...
0
votes
1
answer
122
views
Google location services returning a null location when I use Retrofit
I have a fragment where I want to get my current coordinates and then use Retrofit to make a request to Zomato Api but my current location is returning null. I tried to delete the code relative to my ...
1
vote
0
answers
83
views
Android FusedLocationProviderClient not working
I am using FusedLocationProviderClient to get the current location. In a particular case, user driving and device screen off, so the location service is stopped.
The service is working well in these ...
0
votes
1
answer
2k
views
How to find my current location in android studio using Google Maps API?
Basically, I wrote code for finding my current location and I am using Android 10.0 and API 30 and the latest Android Studio version. and all the SDK tools are installed, but when I start the program, ...
2
votes
0
answers
2k
views
How to get accurate geo-location from browser in vue js application
I was building a geolocation application and I got the coordinates that are not accurate at all, it has a minimum 200000meters difference.
<template>
<button @click="getLocation2">...
0
votes
1
answer
2k
views
How to get City name or Street address from lat and long for vue web applications?
I have built a Vue web application and i got the user coordinates using 'vue-browser-geolocation' plugin,
with that coordinates how can I get the city name or streetname,
this.$getLocation(options)
...
0
votes
0
answers
58
views
Android - Getting Location Services to Work
I've tried using both FusedLocationAPI and Location Services to try getting location information and with both methods, I'm not seeing the Listener / Callback function run. I've been following Google'...
0
votes
1
answer
134
views
Error with google libraries play-services-location and play-services-analytics
I have this services in the gradle:
implementation 'com.google.android.gms:play-services-location:16.0.0'
implementation 'com.google.android.libraries.places:places:1.1.0'
implementation 'com.google....
0
votes
0
answers
20
views
Ho to get user´s country based on Location object? [duplicate]
I need the user´s location for some features of my app and also want to pass it on to Admob requests to get targeted ads. I´m successfully getting the latitude and longitude however I don´t know how ...
0
votes
0
answers
97
views
Swift 4 - Google Places API filtering
I am working in a swift 4 project with google places api. While entering my desired location’s search in the search bar, I need the google api to return only abbreviated form of states instead of ...
0
votes
0
answers
138
views
Getting current location (Latitude and Longitude) from my ASP.NET App
There are similar questions asked getting lat and lang values for my current location.
How to get the current lat and lang values from my ASP.NET App.
If that is not possible, how to get the value ...
0
votes
1
answer
167
views
Getting more precise location
In my Android Application I am targeting the device ranging from,
Minimum Android Version - 7.1 (API 25)
Target Android Version - 10.0 (API 29)
I am using the below logic to get the location ...
0
votes
1
answer
1k
views
Finding whether the coordinate is within polygon
I want to know if the given coordinates (lat & lon) is within given 4 coordinates.
i.e., If i have the lat,lon of A,B,C,D and E and i wanted to check if E lies within A,B,C and E.
How can i do ...
0
votes
1
answer
354
views
Google PlaceAutoCompleteFragment loses focus when being clicked
My search bar of PlaceAutoComplete loses focus when being clicked. Sometimes it's possible to click and search but it doesn't find any place and then loses focus again.
I already tried to follow the ...
2
votes
1
answer
2k
views
Android periodic location locationRequest.interval not working [duplicate]
TL;DR :
Android requestLocationUpdates() has locationRequest.interval = 10000 which does not happen, is something wrong?
In Details:
Successfully implemented Android period location and it works ...
0
votes
2
answers
110
views
Which library should I use for Location when using google maps?
I have the following library for the google maps and it works fine
implementation 'com.google.android.gms:play-services-maps:16.1.0'
But when I try to add this one for location,
implementation '...
2
votes
0
answers
513
views
ANR Input dispatching timed out when get location & address (GPS)
I am trying to get last location and convert it to address using JobIntentService then send the result to UI using ResultReceiver. All working normally except for some specific devices which resulted ...
0
votes
0
answers
167
views
Call locationRequest when activity opens and then each interval
I have made an app that uses the location of the user.
When the user first creates the account, I had liked it to read his current location and then update it every 60min.
I used the following code:
...