geolocation

HTML5 Geolocation Altitude

最后都变了- 提交于 2019-12-11 00:38:29
问题 I was playing with the html5 geolocation api for a project I'm working on. Latitude and longitude are reported correctly but altitude is always returned as 'null'. Testing device is Nexus 4 and 5, has anybody else had similar problems with this api? 回答1: Absolutely! it appears to be an issue that may be browser specific. Since I develop on both IPhones and Android I make sure to try my HTML5 apps on the default browsers (Safari and Android's webBrowser). My new IPhone 5S picks up the altitude

Is there any easy way to make GPS coordinates coarse?

落花浮王杯 提交于 2019-12-11 00:29:59
问题 I'm working on an iPhone app that is using GPS coordinates for leaderboards. I don't need the coordinates to be exact --- actually I don't ever want the coordinates to be exact, to protect user privacy. I am specifying kCLLocationAccuracyThreeKilometers for desiredAccuracy, but when the GPS is active it seems it can also pick up the exact location when the device has it. QUESTION: Is there any easy algorithm I can use to make the GPS data more coarse? Say, make it granular to 3km. If I just

Google Maps API check if marker exists in multiple bounds

浪尽此生 提交于 2019-12-10 23:48:39
问题 I'm trying to check if markers already exist in my boundaries before adding them to the map. I found that the best way to this is by using map.getBounds().contains(marker.getPosition()) which returns true if the marker exists on the map and false if it doesn't. So on false, I add the marker to the map. This works fine however I have multiple boundaries and map.getBounds() seems to get 1 boundary. The code below sets markers in each boundary in a loop but checks if markers exists in just 1

why Geocoder.getFromLocationName(…) returns an empty list?

别来无恙 提交于 2019-12-10 22:27:04
问题 I'm using the android.location.Geocoder for the first time. The Idea is: I have a Listener on a button which takes input from an EditText and resolve the location. Up to now it's debugging phase, so I have no handler taking messages from the thread, only geocoding and write to logcat. Q: Why this method always returns an empty list of Address objects? private View.OnClickListener checkLocation = new View.OnClickListener() { @Override public void onClick(View v) { location = ((EditText

Looking for Python/Django Framework to query GeoLocation Data in DB [closed]

不羁的心 提交于 2019-12-10 22:17:05
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I'm looking for a way to store a number of points, zipcode and their latitude and longitude in a database, and given a query point Q's

How to get Country name by given Postal Code (ZIP) on iOS SDK

我是研究僧i 提交于 2019-12-10 22:09:03
问题 Is it possible to get the country name by giving the postal code of the user? I looked at the Core Location Framework, but it doesn't look to work the other way around by given the Postal Code and finding the Country name. The Core Location framework (CoreLocation.framework) provides location and heading information to apps. For location information, the framework uses the onboard GPS, cell, or Wi-Fi radios to find the user’s current longitude and latitude. I hope there is a class on iOS SDK,

Uncaught ReferenceError: lat is not defined [duplicate]

人盡茶涼 提交于 2019-12-10 22:08:02
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: JavaScript Variable Scope i have problem with my script, i want to get value lat, lng from pos function, but when i inspect element in console i get this error : "Uncaught ReferenceError: lat is not defined TEST.html:30 (anonymous function)" line 30 is : var latlng = new google.maps.LatLng (lat, lng); This is my full code : <script type="text/javascript"> navigator.geolocation.getCurrentPosition (function (pos){

geoLocation enabling without page-refresh?

余生颓废 提交于 2019-12-10 22:07:43
问题 Currently, we have to refresh the web-page (actually PhoneGap app) if the GPS was off and (after notifying the user) then turned-on. How can we update the GeoLocation status without the need to refresh the page/app ? 回答1: Why not simply use a setInterval to check for support every few seconds? 回答2: Hopefully this helps someone else out. I had the same issues with trying to load the geoLocation over Google Maps API in a multi page phonegap+JQM app. A setInterval/setTimer did not work as well.

How can I get the HTML5 GeoLocation feature to work on GeckoFX v22 web browser control for WinForms using C#?

瘦欲@ 提交于 2019-12-10 21:50:34
问题 I wanted to implement a web browser control to Geo-location enable my WinForm desktop application. I have successfully implemented the GeckoFX web browser in my WinForm project. The problem is when visiting a HTML5 Gelocation enabled website/address the "Allow/Deny access" popup does not appear. As a result the Geo-location does not work. I have confirmed that Geo-location is enabled in preferences and have tested my WinForm using http://html5test.com and the control is listed as supporting

How to convert longitude and latitude value to address in windows phone? [duplicate]

烂漫一生 提交于 2019-12-10 21:09:36
问题 This question already has an answer here : Windows Phone ReverseGeocoding to get Address from Lat and Long (1 answer) Closed 5 years ago . I get the latitude and longitude value using void _watcher_PositionChanged(object sender, GeoPositionChangedEventArgs<GeoCoordinate> e) { latitude = e.Position.Location.Latitude; longitude = e.Position.Location.Longitude; MessageBox.Show("Latitude & Longitude:" + latitude + " " + longitude); } Result like: Latitude & Longitude: 12.56 77.34 Now i want to