geolocation

Apache Cordova geolocation.watchPosition() times out on iOS when standing still

一世执手 提交于 2019-12-03 08:47:56
When utilizing Apache Cordova's cordova-plugin-geolocation, specifically with watchPosition() I am encountering difficulties on at least iOS 8.1.3 through 8.3. What is happening is that when a user is moving, the coordinates work just fine and are continuously updating. However when the user stops for a few moments (say the timeout that is set), a timeout error is thrown. The second the user moves again the coordinates are working. We cannot increase the timeout too much for fear that users will legitimately lose reception and have to re-record their field boundaries (agricultural application)

How to get geolocation from a UK postal code

别等时光非礼了梦想. 提交于 2019-12-03 08:46:51
I have a PHP script at the moment which allows users to enter a UK postcode. I was wondering if there was a way I could get their geolocation from the postcode they enter. (Through Google's API or something?) I have tried http://code.google.com/apis/maps/documentation/geocoding/index.html but it requires a full address, whereas I only have a postcode. Help would be appreciated, thanks :) Peter You could check out the Yahoo PlaceFinder API Heres an example URL http://where.yahooapis.com/geocode?q=BL12DD&appid=[yourappidhere] I have used this in the past and found it to be somewhat accurate.

Find the State given Latitude and Longitude Coordinates

随声附和 提交于 2019-12-03 08:37:06
I have a set of 900 Latitude and Longitude Coordinates-- I need a relatively simple method for finding the 'State' referred to by these coordinates. If it helps, the data is in excel. Google provide a Geocoding service. Part of this is reverse geocoding which converts geographic coordinates into a human-readable address including States. This Demo illustrates what can be done. There are limits to what you can do with this service. Axel Kemper Try to use the average values as provided here . With a bit of luck, most of your 900 coordinate pairs belong to the state with the nearest center.

How or where does foursquare gets its geodata from?

那年仲夏 提交于 2019-12-03 08:35:06
I've been trying to answer this myself but I can't find it, would any of you know? Truth is they probably scraped it from someone else initially. See Yelp, Maps (Gmail,Yahoo,Bing,etc), Citysearch, etc. Yahoo has some flexible GeoData APIs. Some of the above also have APIs (including FourSquare) which would make this easier, but is most likely against their terms of service (TOS). Please post back if you find out otherwise, or a viable solution. Users generate/add the locations 来源: https://stackoverflow.com/questions/2216198/how-or-where-does-foursquare-gets-its-geodata-from

What services exist that geo-locates a person based on IP? [closed]

主宰稳场 提交于 2019-12-03 08:23:16
What do people use to geo-locate a persons IP to determine the city they are in? I've tried the built in functionality of Google API but its geo-location database seem spotty. http://code.google.com/apis/ajax/documentation/#ClientLocation Anyone use any other service for geo-locating with success? The most stable company I've seen that does it is MaxMind . A buddy of mine is using is with success. There is a community-based Geotargeting service from hostip.info . They have a nice clean API for Geotargeted IP Address Lookup. They've got over 8.6 million entries in their database. Example: http:

How can I get the position (lat, lon) of a foursquare checkin posted on twitter?

送分小仙女□ 提交于 2019-12-03 08:10:07
I search with the twitter API all the public tweets with "4sq.com": http://search.twitter.com/search.json?q=4sq.com so I get all the check-in on Foursquare that actually shared on Twitter. {"created_at":"Sun, 08 Jan 2012 20:05:27 +0000","from_user":"fenavergara","from_user_id":50876086,"from_user_id_str":"50876086","from_user_name":"Fernanda Vergara Ch","geo":null,"id":156104246239051776,"id_str":"156104246239051776","iso_language_code":"lt","metadata":{"result_type":"recent"},"profile_image_url":"http://a2.twimg.com/profile_images/1708744785/image_normal.jpg","profile_image_url_https":"https:

compute geo distance in elasticsearch

心已入冬 提交于 2019-12-03 08:08:55
i am using a geo_distance filter with tire in my query and it works fine: search.filter :geo_distance, :distance => "#{request.distance}km", :location => "#{request.lat},#{request.lng}" i expected that the result would somehow include the computed distance to the geo-location that i used for my filter. is there a way to tell elasticsearch to include that in the response, so that i don't have to calculate it in ruby for every result? == UPDATE == i found the answer in a google group: search.sort do by "_geo_distance", "location" => "#{request.lat},#{request.lng}", "unit" => "km" if request.with

Google Geocoding API returns wrong language in response

别说谁变了你拦得住时间么 提交于 2019-12-03 08:08:54
My project requests Geocoding API for coordinates and correct full addresses in Odessa, Ukraine. I could request response in Russian or Ukrainian language adding language=ru ( language=uk ) parameter to the HTTP request. Starting today I get street name in Ukrainian in response, no matter which language I specify in request. Examples. Request for Russian: https://maps.googleapis.com/maps/api/geocode/json?address=Пушкинская, Одесса, Украина&language=ru Relevant part of the response: "results" : [ { "address_components" : [ { "long_name" : "Пушкінська вулиця", "short_name" : "Пушкінська вулиця",

Geofence in the Background Windows Phone 8.1 (WinRT)

帅比萌擦擦* 提交于 2019-12-03 07:52:07
问题 Issue I'm trying to trigger a BackgroundTask when a Geofence Event (Enter / Exit) occurs in WP8.1 (WinRT). I've written a sample application to try to get it working, but can't seem to be able to do so. So far, these are the steps I've taken to try to get Geofences working in the background: Check for Location Capabilities Create + Register a Geofence Create + Register a BackgroundTask that listens for LocationTrigger(LocationTriggerType.Geofence); In my background task, trigger a simple

R ggplot2/ggmap concentric circles as points

有些话、适合烂在心里 提交于 2019-12-03 07:41:33
I am trying to plot some information that shows full population and then a subset of that population by location on a map. I've seen data visualizations that use concentric circles or 3-d inverted cones to convey this. I just can't figure out how to do it in ggplot / ggmap Here's a free hand version in Paint that shows a rough idea of what I'm looking to do: Here's a rough piece of data for an example: > dput(df1) structure(list(zip = c("00210", "00653", "00952", "02571", "04211", "05286", "06478", "07839", "10090", "11559"), city = c("Portsmouth", "Guanica", "Sabana Seca", "Wareham", "Auburn"