geolocation

Xamarin.iOS localization of NSLocationWhenInUseUsageDescription

好久不见. 提交于 2019-12-12 14:42:28
问题 Is there a way to localise the NSLocationWhenInUseUsageDescription in Info.plist in the Xamarin Studio? Or any possibility to localise the complete Info.plist would be a solution as well. I tried the following steps as it looks analogue to the How to localise a string inside the iOS info.plist file? but it does not work for me. So these are the steps: In both en.proj and de.proj : I added an empty file InfoPlist.strings In Info.plist : I have set the key of the "

Check if user is using browser located in China or not

半世苍凉 提交于 2019-12-12 14:29:39
问题 China is blocking Google API since 2014, this means long loading times for websites that include Map API or Fonts API. There is a workaround for this, since fonts.useso.com also provide the same font library (see libs.useso.com, fonts.useso.com respectively). The following code <link href='http://fonts.googleapis.com/css?family=Open+Sans:300,400,600&subset=latin,latin-ext' rel='stylesheet'> can be changed into <link href='http://fonts.useso.com/css?family=Open+Sans:300,400,600&subset=latin

Differences of geolocation accuracy between browsers

一曲冷凌霜 提交于 2019-12-12 14:28:46
问题 I try to know why when I use the geolocation with differents browsers on a same computer I have differents results. I know the implementation of the feature is not perfect..but, it's strange because I try on a computer with chrome and FF4.1 and i got a good accuracy. On the same computer IE give me a bad accuracy. When I try on an other computer with chrome and FF 4.1, Chrome give me a good result and firefox the same bad accuracy as IE (ip location i guess ). If anyone have a solution to get

Which web browsers support Gelocation via HTML5?

旧时模样 提交于 2019-12-12 12:17:26
问题 Which web browsers (and version) support Gelocation via HTML5? 回答1: on the desktop only firefox (not sure if opera already includes it in official builds), on mobile: mobile safari 3 & android 2.x browser more info about support on: the desktop: http://www.findmebyip.com/litmus mobile: http://www.quirksmode.org/webkit.html#t013 hope this helps, frank 回答2: Geolocation on Safari is iPhone only Google Chrome beta has optional support: http://www.wait-till-i.com/2010/03/04/google-chrome-getting

I am getting (lat,long) coordinates in phonegap geolocation without using internet or GPS ?

我是研究僧i 提交于 2019-12-12 12:15:08
问题 When i tried out a sample program in phonegap geolocation. I am getting the latitude and longitude of my current location without internet or GPS in my samsung pop. I don't know how it is getting the coordinates, altitude and timestamp of the current location when the wifi and gps in my device is DISABLED. Kindly help me.. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org /TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html;

onProviderEnabled not working?

折月煮酒 提交于 2019-12-12 11:30:31
问题 For switching between GPS & Network location provider I just tried in a way like this, to identify when a provider is disabled switch to another, but my onProviderEnabled() is not getting invoked public void onProviderDisabled(String provider) { Toast.makeText(TrackerService.this, "Disabled : " + provider, Toast.LENGTH_LONG).show(); } public void onProviderEnabled(String provider) { Toast.makeText(TrackerService.this, "Enabled : " + provider, Toast.LENGTH_LONG).show() 回答1: Define a location

javascript - geolocation not working in codepen

随声附和 提交于 2019-12-12 10:55:10
问题 I'm trying to implement a simple weather app in codepen. The app works fine on localhost It asks for permission to use navigator.geolocation and if accepted it shows the weather, but on codepen it's not even asking for permission. here is the link http://codepen.io/asamolion/pen/BzWLVe Here is the JS function function getWeather() { 'use strict'; $('#getWeatherButton').hide(); if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(function (position) { var url = 'http://api

How to remove location services request from PhoneGap iOS 6 app?

妖精的绣舞 提交于 2019-12-12 10:20:06
问题 I am using PhoneGap 2.8 to create an iOS 6 app. I am building it in XCode, not using PhoneGap Build. My app does not require location services, but uses the camera. Every time it returns from the camera.getPicture() call, it shows a dialog to allow my app to use location services. If I say no, or location services are disabled, the photo does not get passed back to my app. This happens even if I deny the camera app location services in the privacy settings. I have also edited my config.xml

How to POST Geolocation values to a Sharepoint List Field with Rest API?

老子叫甜甜 提交于 2019-12-12 10:17:20
问题 I need to post two values Caption and Location, later being a GeoLocation field in Sharepoint list. I am using the following JSON: {"__metadata": { "type": "SP.ListItem" }, "Caption": "Testing", "Location": "POINT (78.4 17.4)"} But it's not working. Shows the following error: Cannot deserialize data for type Microsoft.SharePoint.SPFieldGeolocationValue I am doing this from Xcode. 回答1: SharePoint REST service expects SP.FieldGeolocationValue to be specified in the following format: { "_

http get/post request and google geolocation api

若如初见. 提交于 2019-12-12 09:27:48
问题 I'm using the web application at http://m.rummble.com website and when I click find my location using gears. The application returns my current location (approximate city location) with various establishments in a given mile radius. To further understand how this works, I opened up wireshark and what I notice is that a POST request is sent to www.google.com/loc/json. Then the google server responds with 200 OK and location data in JSON format. I understand this part. The next step is what I