geolocation

Physical Address to GeoLocation UK

爷,独闯天下 提交于 2019-12-08 05:13:55
问题 Is there a good physical address to GeoLocation conversion database in the UK? I am trying to use this to build a globrix style search box http://www.globrix.com/ for a web application. Any pointers will be nice. I have been searching for hours. I have found several that convert UK Postcodes into Geolocation. But I need the addresses listed as on Globrix. 回答1: The Google Maps API provides a geocoder webservice that you can actually use independently of Google Maps itself. You send it the

Different GPS Location Reading Of Same Physical Location on Windows Phone GeoCoordinateWatcher

人走茶凉 提交于 2019-12-08 05:13:13
问题 I am getting coordinates with Windows Phone GeoWatcher like this private GeoCoordinateWatcher _watcher = new GeoCoordinateWatcher(GeoPositionAccuracy.High); _watcher.MovementThreshold = 2; // Threshold Value _watcher.PositionChanged += Watcher_PositionChanged; //Registering Watcher Position Change Event _watcher.Start(); // Starting Watcher //Watcher position Change Event private void Watcher_PositionChanged(object sender, GeoPositionChangedEventArgs<GeoCoordinate> e) { var coord = new

how to calculate angle between two path lines on google map using lat-long coordinates

被刻印的时光 ゝ 提交于 2019-12-08 04:55:19
问题 I want to calculate angle between two path lines on Google map. I have the lat-long coordinates of the end points of the lines. Please suggest If there is other information I can use to do this that is available from Google maps. 回答1: If the distances are small you can use this method. The accuracy reduces with large distances and the further you move from the equator. First find bearings with computeHeading() computeHeading(from:LatLng, to:LatLng) .Returns the heading from one LatLng to

How do I force minimum accuracy for PhoneGap GPS Geolocation?

半世苍凉 提交于 2019-12-08 04:50:37
问题 I am building an app that requires somewhat accurate GPS position of the user. Right now I'm using: navigator.geolocation.getCurrentPosition(geolocationSuccess,geolocationError, { maximumAge: 60000, timeout:8000 , enableHighAccuracy: true } ); When running the app however, I'm getting position.coords.accuracy with a value of 29000 sometimes or higher. This is not acceptable. How can I force a lower (more accurate) GPS position? It's happening on both iOS and Android. Note I'm using <gap

Issue with geolocation timeout callback firing whether response received or not

二次信任 提交于 2019-12-08 04:18:35
问题 I've implemented a timer for a HTML5 geolocation request as per this post Geolocation feedback while accepting the request However I'm having an issue where the timer is called regardless of whether the navigator.geolocation.received response is true or not. Perhaps I'm missing something very obvious but I can't see what. Basically, if I get the geo-location information I run the geo_success_action() function, but in every other case (geo-location failure, timeout on accepting location share,

Get promise of the result of activating geolocation

◇◆丶佛笑我妖孽 提交于 2019-12-08 03:16:57
问题 with this code: if (ionic.Platform.isIOS()) { cordova.plugins.diagnostic.switchToSettings(); } else { cordova.plugins.diagnostic.switchToLocationSettings(); } I can open the native device configuration to mark the geolocation. but I do not know how to do it when the user turns on the geolocation, it simply executes that code but does not get an answer from that. I would like (if possible) to know if the user turned on the geolocation or not. how can I do it? I am using ionic1 , although I

Windows Phone 8 Geolocator can't set desiredAccuracy = High AND tie into PositionChanged event

…衆ロ難τιáo~ 提交于 2019-12-08 03:10:00
问题 background: I'm well versed in WPF/XAML, but new to Windows Phone 8. Hopefully there is just something stupid that I'm missing... I want DesiredAccuracy to be high, but I also want to hook into the PositionChanged event. When the below code reaches _GeoLocator.DesiredAccuracy = PositionAccuracy.High; it throws an abort. If it off, everything works but I really want high accuracy. It seems the two are mutually exclusive of one another. Error message is: Operation aborted (Exception from

Solutions for finding website visitor's geolocation

人盡茶涼 提交于 2019-12-08 02:22:21
问题 I am aware that there are many services which provide geolocation tools for working out where users are visiting from. The website I'm working on is an e-commerce site which runs in multi-territories. When a visitor hits the website it should work out where they are from and show the relevant currency/language for the user. In the past we have used maxmind but I'm wondering if there are better solutions out there. I'm calling out to developers with experience in this area to share their

Determining user language based on IP address (geolocation)

℡╲_俬逩灬. 提交于 2019-12-08 02:12:03
问题 I've integrated two pieces of PHP code found on different websites. The first part of code finds out what country you are in and the second one determines the language. I have tried running it but with no luck. It does not give me a error, just a blank white screen. Here is the code: <?php function visitor_country() { $client = @$_SERVER['HTTP_CLIENT_IP']; $forward = @$_SERVER['HTTP_X_FORWARDED_FOR']; $remote = $_SERVER['REMOTE_ADDR']; $result = "Unknown"; if(filter_var($client, FILTER

Html5 Geolocation clearWatch() is not responding

冷暖自知 提交于 2019-12-08 01:57:09
问题 I compile and adjust this demo script for learning tracking with geolocation from parts of other scripts. So far so good... but the functions clearWatch() to stop searching or tracking are not responding because the alert() after it is not showing up. Something I forgot? <!DOCTYPE html> <html> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <style type="text/css"> html { height: 100% } body { height: 100%; margin: 0px; padding: 0px } #map_canvas { height: 100% ;