12,278 questions
0
votes
2
answers
47
views
Electron: Alternative to navigator.geolocation.getCurrentPosition without API key? [closed]
In my Electron app, navigator.geolocation.getCurrentPosition() always fails. It seems that Electron (Chromium) no longer provides free geolocation and expects a third-party service with an API key (e....
-3
votes
0
answers
49
views
Get current location (longitude, latitude) once directly without using Google APIs? [duplicate]
I'm using Kotlin and Compose, and I can't figure how to get the current location once via only GPS. I don't want to use Fused Location Provider. The location doesn't have to be precise and it's not ...
0
votes
0
answers
51
views
React native location getting feature
I want to add feature in my app where a salesperson logs in and goes out daily to meet random customers and sell banking products. My boss wants a way for the manager to confirm whether the ...
Best practices
0
votes
3
replies
136
views
Converting place/location into timezone
I am using XYZ geoLocation IP details provider API and it giving output in below format
{
"ipAddress": "66.XXX.YY.XXX",
"network": "66.XXX.YY.Z/AB",
...
0
votes
0
answers
23
views
Google Geolocation API Fails when I send many BSSIDs, but picking a random subset works
I am using Google's Geolocation API to resolve a list of Wi-Fi BSSIDs to location; when I send a list of 45 BSSIDs and RSSI, I get a 404 meaning no location was found, when I select only the top 10 or ...
-4
votes
1
answer
122
views
I have a very long list of cities across many countries. How can I add geographical information such as municipality, state, region, etc.? [closed]
I have a column that contains the place of residence of participants. Some reported as "city/village, country", "postcode city, country", "region, country", etc. There ...
0
votes
0
answers
42
views
GPS Speedometer React Native gets throttled by phone
I've been trying to implement a speedometer app that measures your GPS coordinates and returns the speed. Now, I've been using expo-location package but it has some problems.
const { status } = ...
0
votes
0
answers
44
views
ASP.NET MVC Navigator.geolocation.getcurrentlocation sometimes remembers last location and is not refreshed
I have a webpage which allow a user to walk around and click a button to find their position on a map. This can be very accurate but often, if they have clicked the button before, it returns the same ...
0
votes
0
answers
171
views
iOS Terminates Background Task After 30 Seconds in Release — How to Keep Getting Location Every 10 Minutes?
I'm developing a React Native app that collects location every 10 minutes in the background. On iOS, everything works fine in debug mode, but in release mode, my app is suspended or killed after ~30 ...
2
votes
1
answer
60
views
How to fix the error: The named parameter 'settings' isn't defined when invoking Geolocator.getCurrentPosition
The error:
The named parameter 'settings' isn't defined.
The code:
Future<Position?> getCurrentLocation() async {
if (_permissionStatus != LocationPermission.always && ...
0
votes
2
answers
88
views
Calculating the closest intersection based upon latitude and longitude
I have a geojson file containing the latitude and longitude coordinates of all of the streets and avenues in New York City - they're all formatted as either LineString and MultiLineString as follows:
{...
-2
votes
1
answer
61
views
How to run a code inside GitHub Actions as it is running outside the USA location? [closed]
I want to get an API call response inside GitHub Actions for example:
url = https://api.blabla.com/endpoint
response = requests.get(url)
print('response =', response)
I want to find a way to run ...
0
votes
1
answer
148
views
Why do I keep getting errors when attempting to get current position in JavaScript?
I have an html, css, js project with a map using leaflet. Sometimes location works but most of the time I get errors. Here is my JS code:
onst map = L.map('map').setView([30, 0], 3);
L.tileLayer('...
0
votes
1
answer
78
views
MapTiler SDK markers move across the map when scrolling
I'm trying to create markers using the MapTiler SDK. I have a map component that displays a MapTiler map, and in its TypeScript file, I'm adding markers like this:
const marker = new maptilersdk....
1
vote
0
answers
24
views
How do I render markers in react-native-markers using an api call based on a user's location?
fairly new to React Native so please forgive my ignorance. I'm trying to take a user's location, call supabase to obtain nearby locations and plot them as markers in react-native-maps. The challenge I'...
0
votes
1
answer
203
views
Error at accessing Azure Maps Geographic API Endpoints from Web query in PowerBI
I try to use the azure maps endpoint, but i am unable to access any of the endpoints from PowerBI with the Azure Maps "primary key" from my Azure Maps account instance.
https://eu.atlas....
-1
votes
1
answer
87
views
How to improve ip-api locator [closed]
I am trying to make a python IP locator, which currently relies on this function:
def get_location(ip_address="", show_duplicates=True):
url = f"http://ip-api.com/json/{ip_address}&...
0
votes
0
answers
82
views
Android Emulator WebView does not see changed geolocation until I open the same page in Chrome
I have a barebones Android App with a WebView which loads a web page that wants to use geolocation.
All required permissions requested and granted. The web page gets the geolocation, but gets stuck on ...
0
votes
1
answer
78
views
Geolocation with OpenLayers
I'm working with Remix on an OpenLayers project.
Utilizing navigator watchPosition, some layers and features, I can easily track the user's position, move the user's marker, and adjust the center of ...
2
votes
0
answers
94
views
Google Places Autocomplete always returns Canadian addresses, even when setting a US location/bias
I’m using flutter_google_places_hoc081098 (or the official Android Places SDK) to autocomplete addresses in my Flutter app. Despite explicitly setting country filters or lat/lng bias for the United ...
0
votes
1
answer
92
views
How to fetch and save the device location periodically while the Flutter app is closed
Recently, I came across a situation where I needed to save the user's current device location every hour. This needs to happen while the app is completely closed (not just minimized or running in the ...
0
votes
1
answer
38
views
requestWhenInUseAuthorization - missing authorisation popup in simulator
The call of requestWhenInUseAuthorization method is ignored in simulator.
The required description is set:
Features -> Location -> Custom Location is also set
now I can't get any further here, ...
5
votes
5
answers
8k
views
A problem occurred evaluating project ':geolocator_android'
Hello everyone i am a beginner in Flutter Development, i want to use the Geolocator library to get the current location of the user, but when i tried to running the app, the build application process ...
1
vote
1
answer
112
views
Is it possible to remove the location permission only from an SDK used in an Android app?
I know that you can remove the location permission from an app via the code below in AndroidManifest.xml:
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"
...
0
votes
1
answer
125
views
Method getRouteBetweenCoordinates from Polylinepoints is unrecorgnized
I am trying to get the distance between points for a pick-up and drop-off; however, every time use the method getRouteBetweenCoordinates I get the following error:
The method '...
0
votes
0
answers
87
views
Database advice for indexing on time and location
I'm designing the database for the storage of millions of records of geolocated points and would like to know any advice on how to keep searching the data feasible.
Each record would take ...
0
votes
1
answer
113
views
navigator.geolocation.watchPosition does not use gps (any alternatives ?)
I'm trying to access the user's location on my webpage, but the location I get is very imprecise and does not use GPS. I have already checked the permissions in my browser (Firefox) and system (...
0
votes
0
answers
30
views
API to return GPS coordinates from FIPS code
I have a database table comprised of census data that gives a 12 digit FIPS code that refers to the census block. I need to cross reference this data with another table that provides latitude and ...
1
vote
2
answers
57
views
How to Get Real-Time Location of Vendors When App is Not Running in React Native?
I'm building a mobile app using React Native for the frontend and Laravel 11 for the backend APIs.
App Requirements:
Customers can post jobs (e.g., air conditioner cleaning).
Nearby vendors should ...
1
vote
2
answers
106
views
In Flutter some packages are using permissions by their own, how to remove those permissions without removing whole package?
I am using these packages
qr_code_scanner_plus: ^2.0.6
google_mobile_ads: ^5.2.0
provider: ^6.1.2
google_maps_flutter: ^2.9.0
wifi_iot: ^0.3.19+1
permission_handler: ^11.3.1
This is ...
2
votes
1
answer
502
views
Getting current position in Flutter is slow
I'm using Flutter SDK 3.19.1 and geolocator: ^9.0.2 to get the current position. It actually works, but the method is slow, it takes about 4 seconds.
await Geolocator.getCurrentPosition();
How can I ...
0
votes
1
answer
74
views
How to Track the Physical Location of a Google TV with a Custom Android App?
I am developing an application for Google TV and need to continuously track the physical location of the TV. The application aims to monitor and update the location of the device to ensure compliance ...
0
votes
0
answers
66
views
Sveltekit | Capacitor | Android Studio - Geolocation is populating in VS Code's Live Server & with "npm run dev" in terminal but not in Android Studio
I'm building a mobile app for android using Sveltekit and Capacitor. I basically followed a simple tutorial to create an app where you retrieve your Lat and Long after clicking a button. When I use VS ...
0
votes
0
answers
36
views
@react-native-community/geolocation Location request timed out
const getLocation = () => {
const result = requestLocationPermission();
const options = {
enableHighAccuracy: false,
timeout: 5000,
maximumAge: 10000,
};
result.then(res ...
-3
votes
1
answer
155
views
When to use access background location permission? Android Java [closed]
I am developing a transit wand application that captures bus routes and passenger stops and then records them. Do I need to use background location permission? I am requesting location updates in a ...
0
votes
0
answers
46
views
Issues with Google Geolocation API for locating 3G/4G cell towers in Brazil
I’m experiencing issues using the Google Geolocation API to retrieve latitude and longitude based on Cell ID. It seems that I can successfully locate 2G towers, but 3G and 4G/LTE towers are not being ...
1
vote
1
answer
71
views
Recommending a pre-train NER model for geospatial entities
I am trying to find the best pre-trained Hugging Face Transformer model exclusively dedicated to geospatial or location entities to extract location entities in English from a text. Does it work way ...
0
votes
1
answer
53
views
Comparing every latitude and longitude in a dataframe
Probably in over my head here as I'm still learning R...
I have a dataframe containing a column with longitude values and another column with corresponding latitude values. I want to find long/lat ...
1
vote
0
answers
24
views
coordinate of Geospatial with node js express and mangodb
i am using nodejs express and mangodb, when a user signup i want to get the live location of the use geospatial code . this is the error i get when i run my code .
MongoServerError: Can't extract geo ...
-1
votes
1
answer
71
views
How to Display country abbreviation with time in flutter ( like for Dubai 7:55 PM DXB or for Pakistan 7:55 PM PKT )
I am getting timestamp from the backend and i wants to display the time the in this format
7:55 PM PKT
it should display the time and the user current country abbreviation how i can achieve in this ...
0
votes
1
answer
23
views
geolocation getCurrentPosition - is there ever a time when a location wouldn't be available in cache?
I'm reading the docs on getCurrentPosition. For the maximumAge option it states:
If set to Infinity the device must return a cached position regardless
of its age.
(my bolding)
The word 'must' in ...
0
votes
0
answers
30
views
How to Annotate an Architectural Diagram of a Fort with Geo-Coordinates for Mapping Purposes?
I have an image that represents the architectural diagram of a fort. I want to annotate this diagram with geo-coordinates so I can pinpoint my current location over the image.
Considerations:
It's ...
0
votes
2
answers
1k
views
Configure Playwright to avoid browser notifications (such as "this page wants to know your location")
I'm using Playwright to analyze data from a remote site. However, at the first call to
page.goto(URL) # Initial URL
the server pops up a panel, as far as I can tell before any Javascript runs:
So ...
0
votes
1
answer
135
views
Location Foreground Service using FusedLocationProviderClient only collects data one time when location permission option "Ask every time" is selected
As the title indicates, I'm using the FusedLocationProviderClient to collect location data at an interval, and when the user selects "Ask every time" when prompted for location permission, ...
1
vote
1
answer
165
views
FusedLocationProviderClient.requestLocationUpdates recently started hanging while app is in the background
For several years, I've been using FusedLocationClient.requestLocationUpdates to get location data from the device. In the past month (not sure exactly when), this method suddenly started hanging when ...
0
votes
1
answer
59
views
Error in Converting Latitude and Longitude Coordinates to City Names in Large Datasets
I want to convert latitude and longitude to city with a large dataset.
The code I use is as follows:
import numpy as np
import geopy
import time
def get_city_with_retry(df, geolocator, lat_field, ...
0
votes
0
answers
49
views
Prevent Chrome location reload warning banner
When changing site location permissions in Chrome, this banner slides into view prompting you to reload the page:
However, with the Permissions API, it's possible to detect and respond to Geolocation ...
0
votes
0
answers
47
views
Background Location Permission enabled for my app. Playstore rejected my app, what is the fix? [duplicate]
I am building a live tracking feature for the order delivery where we can track current position for my order. The app is made in Flutter. In the driver side I have enabled Background Location ...
1
vote
0
answers
75
views
Get location updates based on time interval or min distance in Android(whichever comes first)
I've been working on an android application in jetpack compose that tracks user's live location and allows group members to track/check each others live locations and journey routes.
Currently, ...
2
votes
1
answer
197
views
Problem after updating to geoflutterfire_plus package
I use to have the package geoflutterfire2, I used this package to get the id of users that where in a certain distance from a specific location (latitude and longitude), my code was:
...