google-geolocation

google maps float pin at center and return location

半城伤御伤魂 提交于 2019-12-24 08:39:57
问题 I would like to keep the pin constant in the center of Google maps while the user can move the map and zoom around. Key is that the current GPS location of the pin (in the center still of course) recursively gets returned as value. I found this Google Map API V2 - How do I keep a marker in the center of the screen while user is scrolling the map? But I this does not return the current center coordinates. I was looking for a demo implementation with code but can't find anything, would greatly

html geolocation: Unknown error acquiring position

和自甴很熟 提交于 2019-12-23 12:29:16
问题 I am trying to use HTML geolocation to get my position. Funny thing is, it was working brilliantly until some seemingly random point in the day when it just stopped working. Now all I get is the error callback with a message: Unknown error acquiring position This happened on the day I first started to develop the app. It is a web app built in Node/Express. The browser I am using is Firefox v53 64-bit. Location is allowed, and I have also tried a fix that I found online which involves going to

The application does not have sufficient geolocation permissions

眉间皱痕 提交于 2019-12-11 05:02:49
问题 I thought this would be a simple solution but a day later I'm still unable to solve it. Im creating a hybrid webview app and my site has a button that gets the users current location. This is working in chrome browser fine but in webview I get the following error: E/cr_LocationProvider: Caught security exception while registering for location updates from the system. The application does not have sufficient geolocation permissions. I've added permissions to the manifest: <uses-permission

Geolocation Request from Amazon EC2

拜拜、爱过 提交于 2019-12-07 07:07:29
问题 I'm deploying an application which makes a request against the Google Maps Geolocation API. My requests go through fine from my workstation. But I get a 400 Bad Request error every time I run it from a server in Amazons cloud. Below is an example curl request I'm making to test. The API in use allows for Any IP. curl -d "{'wifiAccessPoints':[{'macAddress':'c8:d7:19:16:3b:63'},{'macAddress':'c8:d7:19:16:3b:61'}]}" -H "Content-Type: application/json" -i "https://www.googleapis.com/geolocation

Is it possible to use Google Maps Geolocation API for Android Tv?

风流意气都作罢 提交于 2019-12-06 13:33:47
问题 I was created one application for android TV which is already in Google Play store and works fine. Now my new requirement is to use the Google Maps Geolocation API in Android TV so I was refereed this link but no luck. So my question is that Is it possible to use Google Maps Geolocation API in Android TV? 回答1: After many research finally I got the answer.Yes it is possible to use Google Maps Geolocation API in Android TV but with some limitation.As per the documentation given by the The

WatchPosition Time Out In Geolocation

三世轮回 提交于 2019-12-06 10:11:38
问题 I am working on Ionic App and want to fix issue for Geolocation Watch Position. I want to get data after every 1 minutes not after 5 sec. My code is as following, var opti = { enableHighAccuracy: false, timeout:60000, maximumAge: 0 }; navigator.geolocation.watchPosition(success_loc, error_loc, opti); I am using timeout 60000 for giving result after 1 minutes but it is giving result in 5 sec(default time). Need help to fix this problem. 回答1: You need to set the maximumAge to 60000. As per the

Is it possible to use Google Maps Geolocation API for Android Tv?

假装没事ソ 提交于 2019-12-04 19:54:27
I was created one application for android TV which is already in Google Play store and works fine. Now my new requirement is to use the Google Maps Geolocation API in Android TV so I was refereed this link but no luck. So my question is that Is it possible to use Google Maps Geolocation API in Android TV? After many research finally I got the answer.Yes it is possible to use Google Maps Geolocation API in Android TV but with some limitation.As per the documentation given by the The Google Maps Geolocation API their are mainly Two way to achieve this 1) Using Cell tower. 2) Using WiFi Access

WatchPosition Time Out In Geolocation

我的未来我决定 提交于 2019-12-04 15:35:28
I am working on Ionic App and want to fix issue for Geolocation Watch Position. I want to get data after every 1 minutes not after 5 sec. My code is as following, var opti = { enableHighAccuracy: false, timeout:60000, maximumAge: 0 }; navigator.geolocation.watchPosition(success_loc, error_loc, opti); I am using timeout 60000 for giving result after 1 minutes but it is giving result in 5 sec(default time). Need help to fix this problem. You need to set the maximumAge to 60000. As per the docs, the timeout option indicates the time allowed for obtaining the position. So, this is not what

When should I use ACCESS_COARSE_LOCATION permission?

坚强是说给别人听的谎言 提交于 2019-12-03 07:21:14
问题 I am building an Android app that will track the user's geolocation and draw their route on a map. I am using the Google Play Services location API, as described here. It is intuitive that my application requires the ACCESS_FINE_LOCATION permission, which I put in the manifest: <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> Do I also need the ACCESS_COARSE_LOCATION permission? What's the use case where I need the coarse location? 回答1: Do I also need the ACCESS

GeoFence Device when app is in background

坚强是说给别人听的谎言 提交于 2019-12-03 03:24:54
I have implemented the geoFence api and everything is working good. But there are some problems, I want more clarification regarding my confusions. Here are some of the confusions and problems: I want my user to get notified when he enters a geofenced area. I have implemented the GeofenceTransitionsIntentService as per guideline but it is not triggering the transition when the app is in background. What should I need to do? GeoFence Expire time: it is pretty obvious that if we enter Never it is not going to expire, but I am confused about the time. For example if I set it to 10 minutes, what