geolocation

StartUpdatingLocation Vs significant-change location service

做~自己de王妃 提交于 2019-12-03 21:34:44
I am having issue regarding significant-change location service. Apple documentation says "Whether you use the standard location service or the significant-change location service to get location events, the way you receive those events is the same." but in case of "significant-change location service" I am not able to get any callbacks which I get in case of "standard location service" Please let me know if anybody has any inputs? startUpdatingLocation updates the location when it is called first time and then when the distance filter value exceeds. But the

SQL Query For Total Points Within Radius of a Location

▼魔方 西西 提交于 2019-12-03 21:27:51
I have a database table of all zipcodes in the US that includes city,state,latitude & longitude for each zipcode. I also have a database table of points that each have a latitude & longitude associated with them. I'd like to be able to use 1 MySQL query to provide me with a list of all unique city/state combinations from the zipcodes table with the total number of points within a given radius of that city/state. I can get the unique city/state list using the following query: select city,state,latitude,longitude from zipcodes group by city,state order by state,city; I can get the number of

HTML5 GeoLocation API - no callback is called whatsoever

余生颓废 提交于 2019-12-03 21:16:23
I have a code snippet that checks for GeoLocation API. If it's available, I try to get current position. But depending on the browser, code works differently: in IE, successCallback is called with every F5 refres in FF, I get successCallback or errorCallback with error code = 2 (POSITION_UNAVAILABLE) in Chrome I get successCallback or... nothing. I wait and wait and nothing Actually I need successCallback to be called in some consistent manner... Is there a change to achieve it? Code snippet: function successCallback(position) { var latitude = position.coords.latitude; var longitude = position

$geoNear matching nearest array

寵の児 提交于 2019-12-03 21:11:53
问题 I have document in record collection Mongodb (3.4) like below :- { "_id" : ObjectId("592d0c78555a7436b0883960"), "userid" : 7, "addresses" : [ { "apporx" : 50.0, "loc" : [ -73.98137109999999, 40.7476039 ] }, { "apporx" : 15.0, "loc" : [ -73.982002, 40.74767 ] }, { "apporx" :10.0, "loc" : [ -73.9819567, 40.7471609 ] } ] } ` I created index on this collection using below query :- `db.records.createIndex({'addresses.loc':1})` when i execute my below query :- `db.records.aggregate( {$geoNear : {

webservice for autosuggest on city names / postal codes including long-lat coordinates?

我的未来我决定 提交于 2019-12-03 21:07:28
i'm looking for a webservice, to be used for an autocomplete field, where people can fill in either a postal code / city name or both this service will need all cities in Europe , so we can use it for all country websites. and in a later stadium we want to keep the world open for asia and america so this would be a plus. preferably it would also return the long-lat coordinates for the locations, Now it is a free textfield, after leaving the field, we hit the google geocoding service, to find coordinates... preferably i would tie these two together. so we don't have to query 2 services for one

Phonegap Geolocation: track position if app closed

只愿长相守 提交于 2019-12-03 20:56:55
i've followed the tutorial on mobile.tutsplus All runs. But: If I closed the app or turn on the device lock the tracking stops. I want to make my personal jogging tracker with some additional features so i want that the tracking goes on. I'm afraid that is only possible with a pure native App in Objective-C. Any Ideas? user1449862 Not sure about running it in background... but I ran through the same tutorial and had to turn off the sleep mode to get it to work. I am still having problems getting that tutorial to run. The first track runs perfectly, however any subsequent tracks do not run.

Ip to country, city, lat, lang javascript service [closed]

筅森魡賤 提交于 2019-12-03 20:56:50
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . What the best/accurate/free service to convert the IP from the following script to country/city/lat/long? $.getJSON("http://jsonip.appspot.com?callback=?", function(data){ alert( "Data Returned: " + data.ip); }); As it goes I was researching this the other day. Couple of potential options: FreeGeoIP IP Info DB Maxmind do a number of APIs but their JS service doesn't look up to task to my mind. I

How do I convert Exif long/lat to real values?

删除回忆录丶 提交于 2019-12-03 20:38:46
I am trying to get the Exif data from some of my pictures and these are the latitude and longitude values that I am receiving. Can someone help me out and tell me what these numbers mean? DEBUG/lat = 30/1,12/1,34/1 (7588) : lattitude DEBUG/long = 81/1,22/1,41/1 (7588) : longitude thanks in advance. Reno I was going to write a converter for this and stuff, but it turns out the answer is already in this blog Just in case if the link goes dead: public class geoDegree { private boolean valid = false; Double Latitude, Longitude; geoDegree(ExifInterface exif) { String attrLATITUDE = exif

Geolocation APIs for Rails [closed]

前提是你 提交于 2019-12-03 20:25:22
问题 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 4 years ago . I am trying to show map for a location from my rails app.I tried checking YM4R/GM and GeoKit combination but not sure if there is something better for rails 3. 回答1: Try Ruby GeoCoder. It allows street address lookup, IP address lookup and geographic coordinates. 回答2: You could also try RGeo. It looks nice, but I

How create GeoIP functionality in PHP project?

て烟熏妆下的殇ゞ 提交于 2019-12-03 20:14:43
I have some IP adress ( $_SERVER['REMOTE_ADDR'] ) and I must receive (learn) name of country and it would be nice if I can receive (learn) name of city too. And don't forget It's php-project, useful API - very good. P.S. It's some open-source project and we must use only free and open-source tools. None (only the 'GeoIP.dat' file is needed). To download a free GeoIP Standard Country database, go to http://maxmind.com/download/geoip/database/ Install Just place the 'geoip.inc' file somewhere according to the 'include_path' directive of your 'php.ini' file, or just place it in the same directory