Questions tagged [google-geolocation]
The Google Maps Geolocation API also called google-geolocation api is an web interface that can return a location and accuracy radius based on information about cell towers and WiFi nodes that the mobile client can detect.
263
questions
-1
votes
0
answers
20
views
Issues while developing a location tracking webapp [closed]
I am looking for suggestions for the following problems which I encountered while developing a project based on location tracking.
HTML Geolocation API with this I am trying to get the latitude and ...
1
vote
1
answer
37
views
google-geolocation wrong lat and lng inside aws lambda function
i am trying to get user geoLocation by his Ip ,
so i tried calling googleapi inside my lambda function
const getLatLng = () => axios
.post(`https://www.googleapis.com/geolocation/v1/geolocate?key=...
0
votes
1
answer
246
views
"Location Permission Denied" on ios simulator even after setting custom location in Features->Location->customlocation
I am new to mobile development. I am trying to access my current location in the ios simulator running IOS 14.4 and I keep getting the "Location Permission denied" error even after setting ...
0
votes
0
answers
31
views
Is there any way to get the request made, instead of the response?
In the geolocator API, the function navigator.geolocation.getCurrentPosition() sends a POST request to the Google geolocator API, with the following json body:
{
"wifiAccessPoints":[
//...
1
vote
1
answer
82
views
position error in localization in react.js
I have the following code that takes the user's location from a google api, the detail I have is that the accuracy is too high, for example accuracy: 2600.670416166183, I don't know if someone knows ...
-1
votes
1
answer
21
views
Best way to update trail taken by user in map view android
I am using a MapView to display the current position of the user. The user is supposed to be able to move around and a blue line corresponding to his/her path will be displayed.
I am using the ...
0
votes
0
answers
19
views
Why does roadsAPI is not on the road?
I try to make a tracking app for cars.
The market on the screenshot are the tracked geolocation points.
The yellow line is the line which is drawn when I use the original geolocation points I tracked ...
0
votes
1
answer
50
views
Matching Geopoints to road on map
I tried to create an app which track the current user position and I want to display it on a map.
The problem is, when I drive by car I get 2 geopoints and if there was a curve between, then it only ...
2
votes
0
answers
130
views
MissingPluginException for Geocoding package when trying to find location from coordinates
See this question because it's very relevant.
Note: this question doesn't provide a sufficient answer, but the answer to the reference mentions the MainActivity.java-file and how it works with the ...
0
votes
0
answers
30
views
404 error with google places API _ webpage link cannot be found
I used the following code with Jupyter notebook / python,
but received 404 error stating that the webpage cannot be found:
<pre><code>
import requests
from urllib.parse import urlencode
...
1
vote
0
answers
66
views
How can I achieve indoor mapping in Android application?
I have floor plans for my building and I want to track where user is moving along with the floor details, Can anyone suggest what will be useful for it? or where can I register indoor mapping details ...
0
votes
1
answer
79
views
How to fix Non-nullable instance when trying to get phones location
I'm trying to get the location of my phone with geolocation however the variable that stores location when you a press the button to get location has to be store as null at the beginning as I do not ...
0
votes
0
answers
35
views
GeoLocation API returns different results for the same wifi access point list, even with "considerIp" flag et set "false"
We are using Google's geolocation API to get the latlong for the wifi access points. We are seeing inconsistent results. Google's API returns different latlong on different boxes, even with the "...
0
votes
0
answers
30
views
Populate Google Searchbox with user's location name using navigator.geolocation
Right now, I have an event listener so a user can type in their location and it can grab their coordinates. My function looks like this for the selector:
searchBox.addListener('places_changed', () =&...
0
votes
1
answer
75
views
Google geolocation api returns server location where the app is deployed
Apologies if this is weird question, but I've been trying to resolve this for a long time and I can't figure out and am little frustrated.
I'm developing a webapp and need to use Google geolocation ...
0
votes
0
answers
38
views
Python google geolocating bad addresses
I have this code (using python package "geocoder":
gmaps = GoogleMaps('KEY')
df['lng'] = ""
df['lat'] = ""
for x in range(len(df)):
try:
geocode_result = ...
0
votes
0
answers
348
views
Is there a way on Flutter to identify and navigate to a marker from my current Location?
I have a group of markers which I retrieved and plotted on a google maps interface.
I have also implement a geolocator package that gets users location.
So I have a current Position and a set of ...
1
vote
1
answer
820
views
Embeding google maps in web page outputs Error message - Expected mapDiv of type Element but was passed null
Question: Embeding google maps in web page outputs Error message - Expected mapDiv of type Element but was passed null
Answer: It is very simple. The Js code InitMap function requires to be code below ...
0
votes
0
answers
93
views
Connection to Googleapis.com Refused
I am developing an embedded c application on the nrf9160 dev kit.
My goal is to use the googleapis.com/geolocation service to provide location data for my system, but I have been unable to do so.
I ...
0
votes
1
answer
44
views
Embedded C project unable to connect to googleapis.com
I am attempting to use the googleapis.com/geolocation service with an embedded c device (nrf9160 dev kit) to locate that device using the cellular network.
I am currently unable to connect to that ...
0
votes
1
answer
65
views
Moving frontend Google API to backend
I'm using Google Geolocation API on my website. I wanted to restrict my API key, but HTTP referrer restriction for Geolocation API is not allowed (only IP restriction).
My website is hosted on cluster ...
1
vote
0
answers
54
views
How to get or displaying address and geocode Geolocation in Spreadsheets using web app google script editor?
I want to make my spreadsheets able to displaying data from web app - spreadsheet script editor (geolocation). I want to get my siblings current location. I don't want use Google Form by the way.
How ...
0
votes
0
answers
70
views
Google Maps Geolocation API gives different answers to same request
I am sending the following request to Google Geolocation API:
{
"considerIp": false,
"cellTowers": [
{
"cellId": 53371,
"locationAreaCode": 821,
...
0
votes
1
answer
289
views
Disable location services when leaving map screen (Flutter )
I’m using this flutter package to manage location services in my flutter app : https://pub.dev/packages/geolocator
I want to disable the active state of the location service (after some seconds) when ...
-4
votes
1
answer
873
views
Is there a way to convert meters to kilometers in dart?
i am using geolocator: ^7.3.1 package They mentioned a function that calculates the distance between two geographical points , But the result comes in meters by default
How could this be done in Km
...
0
votes
0
answers
36
views
Failed assertion: line 35 pos 18: 'longitude != null': is not true
I'm still trying to work on my Taxi App. Where I was supposed to search for a drop-off location but each time the user searches for a location and clicks on it using Google Autocomplete It keeps ...
0
votes
0
answers
40
views
React - How can i add Geolocation (getCurrentPosition) in my react-redux code
I would to add geolocation.getCurrentPosition in my code below using react and redux and then send the coordinates (Lat and Long) to the Local Storage but i don't have any idea !
I deleted the HTML ...
0
votes
1
answer
112
views
Google map shows blank in flutter
can anyone help me please, I'm trying to implement google map in my flutter app, the problem I'm facing is the google map shows bland with google logo only. I have generated the key, inserted plugins ...
0
votes
0
answers
93
views
geolocation in HTTP
I am trying to get the geolocation of a user to post in text box on a http website. I have been using the below code in testing, which worked great but it does not work once deployed.
if (navigator....
0
votes
1
answer
115
views
Microsoft Teams Custom Tab Application - geolocation issue
I created a custom teams application using Microsoft Teams Toolkit for VS Code. I am trying to read the location from the app. I am able to load the coordinates in the Browser and Android version of ...
-1
votes
1
answer
1k
views
How to get position (latitude and longitude) from a postal (zip) code in react?
I need to know what is the best way to get latitude and longitude from a postal (zip) code in react ?
I try with geocode from google API (with the npm package react-geocode), but I can't do a search ...
0
votes
0
answers
62
views
Python Selenium Change Geolocation
I am trying to trick the Python chromedriver to make it believe that it is running in a different city.
It appears someone has found an answer for this in JavaScript, but I was wondering if it is ...
-2
votes
2
answers
98
views
Geolocation value retuned from service is undefined
I have placed the geolocation call in a service which I want to use in different areas of the application. However, undefined is being returned. How do I return the value properly so that it can be ...
0
votes
2
answers
5k
views
Flutter geolocation not showing anything
I am new to flutter and trying to create a geolocation.
however, for my following code, the screen only shows 'Loading.. Please wait..' and the map is not showing.
i am just trying to show the current ...
0
votes
0
answers
185
views
Unable to show map using geolocation in Google form
So i am creating a google form to get location of the user.
here is my code for finding geolocation of user
code.gs
function doGet() {
return HtmlService.createHtmlOutputFromFile("Index&...
3
votes
1
answer
510
views
Geolocation API: Requested entity was not found
I am trying Geolocation API for first time, but not able to get it working.
Trying a sample from https://developers.google.com/maps/documentation/geolocation/overview but always returning me 404. I ...
2
votes
4
answers
4k
views
Google GeolocationAPI Requested entity was not found
So Im trying to use the Google GeolocationAPI. It sends the quest successfully and also authenticates successfully with my api key but it returns me this
{
"error": {
...
-1
votes
1
answer
2k
views
Can not solve: Geocode was not successful for the following reason: OVER_QUERY_LIMIT
I want to print multiple pins on gGogle map using a simple JavaScript file.
I got this error:
Geocode was not successful for the following reason: OVER_QUERY_LIMIT
Then I googled and basically there ...
-1
votes
1
answer
154
views
Google Map API Geolocation w/Javascript
I'm working on a project that locates coffee shops near the user's location (which is retrieved via the browser). I'm using Google Maps API with the geolocation.
My idea is to locate the users ...
0
votes
0
answers
2k
views
In React navigator.geolocation.getCurrentPosition() giving wrong coordinates
script used:
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=API_KEY&libraries=places,geometry"></script>
Code used:
var options = {
...
0
votes
3
answers
70
views
I don't understand why this is happening when both code are aparently same
this.state = { lat: null };
window.navigator.geolocation.getCurrentPosition(
pos=>{
this.setState({lat:pos.coords.latitude});
},
err=>{
console.log(err);
}
);
...
0
votes
1
answer
2k
views
Navigate to search result Flutter Google Maps
I have a SearchMapPlaceWidget that suggests me places based on my search keyword. I want to animate the camera to the suggested place I tap on. How do I do that?
Here's the SearchMapPlaceWidget that ...
0
votes
1
answer
505
views
Location of the users logging in to the website via Geolocation and Javascript API, but violation errors
Trying to access the locations of the users logging in to a website using Google's Geolocation and Javascript API. But it's giving me violation errors.
THE HTML File
<script>
var map, ...
0
votes
1
answer
225
views
Google geocode format issue. Receiving undefined offset error
I get this PHP Notice: Undefined offset: 0 on line 9. It is regarding the Google Geocode API in the code provided below.
An undefined offset error occurs when you try to reference an array value ...
1
vote
0
answers
556
views
Google Maps Geolocation API with a single Cell Tower very often returns "Error 404 geolocation not found"
I'm using Google Geolocation API to convert a single Cell Tower data to location data. The request is made by a Windows service. Typically it's:
{
"considerIp": "false",
"cellTowers":
[
...
0
votes
1
answer
513
views
Google Maps Geolocation API always returns 'Invalid JSON payload received.'
I am able to perform the below cURL operation provided by the Google Geolocation API docs.
example.json
{
"considerIp": "false",
"wifiAccessPoints": [
{
"macAddress": "00:25:...
2
votes
1
answer
397
views
Google Geolocation API is always returning the same location regardless of cellTower specified
I'm using the Google Geolocation API to approximate location based on cell towers that are visible. However, I always get the same location as the result.
Using the following body:
{
"...
0
votes
1
answer
784
views
How get GPS time with javascript
I am trying to get the time from GPS with Javascript, I've found the Geolocation API (https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API.
It give me a GeolocationPosition (https://...
1
vote
0
answers
181
views
Cannot find altitude parameter in Navigator geolocation while capturing device location need to know what sensor is used to detect location GPS/Wifi
I'm using Navigator geolocation property to detect User's device location. In the return object I'm receiving a parameter 'coords', according to which I'm identifying what is the sensor used to ...
0
votes
2
answers
339
views
Measure GPS distance between two points without using almost any math? (accuracy is not needed at all)
I'm programming an application where I save GPS location (lat and long) into each user info. I need to search the nearest users, I can only search using a between() function provided by my database, ...