geolocation

How do I calculate distance/proximity between one location and another (c#)

不想你离开。 提交于 2019-12-13 12:39:53
问题 Hi I'm wondering how to calculate very accurately when a user gets into proximity of say 30 feet of another specified location, there may be many specified locations so what would the best way to do be ? *example scenario; mobile app user moves into proximity (30 ft) of one of its apps many specified locations..(how would I calculate that proximity between 2 locations ie the mobile user and other locations) thanks in advance 回答1: the best approach is to use a "spatially enabled" data

HTML5 offline mode and geolocation

谁都会走 提交于 2019-12-13 12:26:50
问题 Is it possible to still use the geolocation features when you are in offline mode in HTML5? It appears that when I am online (navigator.onLine = true), the geolocation works fine. But when I go offline (navigator.onLine = false), I get thrown to my error callback and the error indicates geolocation not available. 回答1: It's going to depend on how the GeoLocation in that particular browser is wired up. In Firefox, GeoLocation depends on Google Location Services which works by sending some

Finding the center point of a city

試著忘記壹切 提交于 2019-12-13 12:22:29
问题 We are purchasing a database of zip codes and their corresponding Lat/Long. I want to store cities in a separate table with a lat/long point representing the center of the city. Can I calculate that based on taking all of the zips that belong to that city, getting the min/max points for each direction, and taking the center point of the resulting rectangle? Is there a more accurate method? I want to avoid purchasing another DB. We haven't purchased the full DB yet so I can't just try it and

iOS re-check location on load from background

妖精的绣舞 提交于 2019-12-13 11:50:57
问题 I'm building an app which displays result data based on your current location. At the moment, I'm using the viewDidLoad method of a UIViewController to start the CLLocationManager and getting the current location. Once I have the location that matches the accuracy I desire, I do a request to my web service to get the results and dump it into a UITableView . My problem is that when you close the app (although it's still running in the background). If you were to drive to another town, re-open

How to easily get a zipcode from a generic address with google maps api?

浪子不回头ぞ 提交于 2019-12-13 11:40:24
问题 I am trying to get the postal code of a generic address such as "los angeles, ca". When I do this: gcode = new google.maps.Geocoder() gcode.geocode({'address': 'Los Angeles, CA'}, function(results, status) { log(results); }); >> [Object { address_components=[4], formatted_address="Los Angeles, CA, USA", geometry={...}, more...}] I get an object returned that does not have a zipcode... However, if I then take the location object returned from that, then I do get access to a zipcode: gcode

Cannot get Geolocation script to work

 ̄綄美尐妖づ 提交于 2019-12-13 09:46:41
问题 I scripted the following code, but for some reason it does not work please help thanks <script> $.getScript('http://www.geoplugin.net/javascript.gp', function() { $location = geoplugin_countryCode(); $location2 = geoplugin_continentCode(); if($location == "CA" || $location == "US" || $location2 == "EU" || $location2 == "DE" || $location2 == "FR" || $location2 == "GB") { alert($location); var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-9240923-27']); _gaq.push(['_trackPageview']);

Services or intent services to send location updates every 5 sec to server endlessly?

我的未来我决定 提交于 2019-12-13 09:31:52
问题 I am using GoogleCientApi object to fetch location updates and other Accelerometer sensors and send it to server every 5 sec . I want it to run in background endlessly i.e. 24*7 with battery optimisation. Nothing needs to be updated in UI . Please suggest whether to use Service or IntentService ? If using Service how to run it using Handler ? Any suggestion or article link will be helpful. 回答1: If you want to achieve this using service public class MyService extends Service { @Nullable

limit in the geolocation of multiple points in google fusion tables

混江龙づ霸主 提交于 2019-12-13 09:27:17
问题 I'm trying to geolocate these 27 points at the same time, in the same row. But the process returns only the first 10 points, even if in the preview they are all 27 correctly geolocated. Why? Is there a particular limit to the number of points I can locate? <Point><coordinates>7.680237,45.064504,0.0</coordinates></Point> <Point><coordinates>7.681675,45.061957,0.0</coordinates></Point> <Point><coordinates>7.685044,45.060768,0.0</coordinates></Point> <Point><coordinates>7.686482,45.06029,0.0<

All Lat Lng of a sql table within 15 Km to each Lat lng of a different table-sql 2008

痞子三分冷 提交于 2019-12-13 09:19:13
问题 SQL 2008 I have two tables. One table (A) have around 4000 locations with lat lng. Another table (B) having 800 locations with lat lng. I need each lat lng of Table B with all corresponding lat lngs within 15 Km of radius. I am using sql 2008 and very new to geographical queries. 回答1: /* Assuming Your tables are like so */ IF OBJECT_ID('#xLocation1') IS NOT NULL DROP TABLE #xLocation1 CREATE TABLE #xLocation1 ( Id INT IDENTITY(1,1) CONSTRAINT PK_Location_1 PRIMARY KEY--Reqire this for Geog

GeoLocation Google Maps not working

守給你的承諾、 提交于 2019-12-13 08:44:31
问题 I'm trying to get range-rings on my map, with the position of the image above the user's location, but the map doesn't appear when I test it and the user's location doesn't seem to show up on the map. I don't know what went wrong, I followed a tutorial on a website. This is the code: <!DOCTYPE html> <html> <head> <title>Radar</title> <meta http-equiv="refresh" content="300"> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <script type="text