geolocation

Enable geolocation for local files on Mobile Chrome

半腔热情 提交于 2019-12-11 05:05:57
问题 I have quite similar question to this one, though concerning Mobile Chrome or any other browser that I can install on Android. I've wrote a simple script using HTML5 geolocation feature, but it does not work neither in Mobile Chrome nor Android 4.1 system browser. In first one, my script returns "User denied" error code, though I did not denied anything (and though geolocation is enabled in Chrome settings). In system browser, status remains on "Idle" (startup value), which causes me to thing

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

“Find my friends” style GPS (remotely ping for location)

邮差的信 提交于 2019-12-11 04:41:54
问题 In the "find my friends" ios app, a friend can ask for another person's location. Find my friends grabs the location in the background and the location services arrow appears momentarily. I am mainly concerned with the fact that the GPS arrow indicator is only shown when the user is pinged by a friend (does not remain on). My intended scenario: Bob opens the app and pings his friend John for John's location. John's phone momentarily shows the GPS arrow and in the background, sends back his

PHP Geolocation (Street Address -> Lat-Long) [closed]

心已入冬 提交于 2019-12-11 04:34:41
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I need some type of PHP thingie so that I can input a few street-addresses (such as: 123 Fake Street, Faketown, FA, 98765) and then it will give me the coordinates (latitude and longitude) of these addresses. I need this to be completely dynamic (as I will be fetching these addresses from a DataBase). Where can

Apache Cordova GeoLocation not providing data

霸气de小男生 提交于 2019-12-11 04:19:02
问题 I'm using Apache Cordova to get the lat and long coordinates of a device to pass on to a parse database. However, the coordinates are returning blank and no error alert appears. JSFiddle shows no syntax errors. document.addEventListener("deviceready", onDeviceReady, false); var lat1=""; var long1=""; // Cordova is ready function onDeviceReady() { navigator.geolocation.getCurrentPosition(onSuccess, onError, options); alert("Device is ready!"); } // onSuccess Geolocation function onSuccess

Use GPS with Windows Mobile Phone

左心房为你撑大大i 提交于 2019-12-11 04:11:38
问题 My question might sound really stupid but, I would like to get longitude & latitude using only GPS on a Windows Mobile Phone 7( OFFLINE - WITHOUT THE NEED FOR A WIFI CONNECTION ). Is that possible or GPS is always assisted by a webservice in Windows Mobile phones? 回答1: If you set Accuracy to High - you will have location from a GPS sensor In the normal case you don't need to worry about how location is achieved, Location Service on WP7 is doing all hard work for you. 回答2: Exactly. GPS device

Check if geolocation is within boundaries

随声附和 提交于 2019-12-11 04:09:48
问题 I'm trying to generate some geolocations within the borders of an area right now I'm trying to generate geo locations within these boundaries $bounds = array( array(55.4024447, 13.1656691), array(56.1575776, 15.8350261), array(68.0410163, 17.4600359), array(58.9380148, 11.3501468), array(67.6820048, 16.1964251) ); and right now my checking for this is as follows if ( ($bounds[0][0] < $lat && $bounds[0][1] < $lng) && ($bounds[1][0] < $lat && $bounds[1][1] > $lng) && ($bounds[2][0] > $lat &&

www/index.html would like to use your current location - Ionic Framework

不羁岁月 提交于 2019-12-11 03:58:40
问题 I searched various forums and posts related to GeoLocation based alert issue; For some reason no technique worked in my case. Added "cordova-plugin-geolocation" plugin to my Ionic Framework Project. Added to my base Controller under $ionicPlatform.ready(...) navigator.geolocation.getCurrentPosition(function(position) { var coords = {}; coords.updated = new Date(); coords.latitude = position.coords.latitude.toFixed(6); coords.longitude = position.coords.longitude.toFixed(6); coords.altitude =

Geolocation on deactivated iOS application

戏子无情 提交于 2019-12-11 03:54:33
问题 It is possible to add location awareness to an application when it's closed? For example I'd like to create a proximity service that works when my application is closed and pushes a local notification to the user when he reaches an area. I read that with CLRegion I can achieve a similar result but only whenever the application is active (or in background). I need something similar to a remote notification service activated by the user location. But it sounds really strange. Is it possible to

How to find the long and lat of a city on the iphone?

∥☆過路亽.° 提交于 2019-12-11 03:53:06
问题 I am trying to find the long and lat of a city on the iphone. Say the user is searching for London, I would call some function that would retrieve the long and lat of London. I have looked on the web and found you can use a Google API but there must be an Apple function somewhere to handle this? I have come accross the MKReverseGeocoder which takes the long and lat and tells you what city you are near. e.g. // reverse geocode the user location geocoder = [[[MKReverseGeocoder alloc]