geolocation

Plot GeoIP data on a World Map

随声附和 提交于 2019-12-04 17:42:11
问题 I need a library (preferably written in Python) which is able to take a series of IP addresses (or geographic coordinates) and plots them on a World Map. I already found this one, but it outputs data as a .svg file and it's simply unable to cope with large data sets. Please note that I need something which can be downloaded and run locally, so no data uploading to 3rd party web services. Thanks! 回答1: Perhaps Basemap in Matplotlib for the plotting. It can do all sorts of projections (don't

Strategies for large volume of location geocoding

99封情书 提交于 2019-12-04 17:33:46
I have an application that uses the Google Maps API to geocode distances between lat/long pairs as a way of displaying people near to you on your phone (currently Android, working on iPhone). The issue is that even with a test group of 40 users, we are taking upwards of 10 seconds to do our calculations and send the results back to the users. While 10 seconds sounds like a long time, it's not really an issue as far as the client app goes because it's not a real-time update of people's locations (the updates occur every few minutes). Obviously this is a problem though since we'd obviously love

How to Obtain Latitude and Longitude in Android

☆樱花仙子☆ 提交于 2019-12-04 17:32:29
How to obtain Latitude and longitude from the mobile device if GPS is not available... My mobile has internet Connection through wifi and gprs connection.... Can we get the lats and long from this? Udaykiran edited : Network and also GPS Provider Location Yes we cam...try this LocationManager manager = (LocationManager) Context.getSystemService(Context.LOCATION_SERVICE); manager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER); // additionally (you have to implement LocationListener) manager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0.0f, new LocationListener() ...)

Search for range Latitude/Longitude coordinates

五迷三道 提交于 2019-12-04 17:25:53
This script works, but I am sure there is a better way to approach this. I have already tried storing them using the MySQL gis functionality any other suggestions would be helpful. $vicinity = .001; $lat_ceiling = floatval($lat) + floatval($vicinity); $lat_floor = floatval($lat) - floatval($vicinity); $lng_ceiling = floatval($lng) + floatval($vicinity); $lng_floor = floatval($lng) - floatval($vicinity); $query = "SELECT * FROM `geolocations` WHERE". "`latitude` <= '".$lat_ceiling."' AND `latitude` >= '". $lat_floor ."' AND `longitude` <= '".$lng_ceiling."' AND `longitude` >= '". $lng_floor ."'

Earth Latitude & Longitude to Latitude & Longitude on a 3D sphere

这一生的挚爱 提交于 2019-12-04 17:14:31
I have never done this sort of thing before,but what I am doing is making a 3D sphere (which has earth like texture) like shape where I want to plot locations onto it using the latitude and longitude from google maps of specific locations.Now I am wondering , my sphere radius is obviously smaller than earths radius, would this still effect the position of the latitude and longitude values to xyz given the following formula: tx = radiusOfSphere * cos(latitude) * cos(longitude); ty = radiusOfSphere * -sin(latitude); tz = radiusOfSphere * cos(latitude) * sin(longitude); Yes. tx^2 + ty^2 + tz^2 =

Is it possible to retrive an existing iPhone image's metadata (specifically geolocation data) using PhoneGap?

我是研究僧i 提交于 2019-12-04 16:48:18
I'm using PhoneGap 1.4.1 to create an iPhone application. I can successfully perform the following tasks: retrieve an image from a photo album or the camera roll take a new image with the camera retrieve the current geolocation of the device It is my understanding that images taken on the iPhone contain metadata. I believe the metadata contains the geolocation of where the picture was taken. I can't seem to find anything in the PhoneGap API about image metadata. I can already retrieve the device's current location, but I need to access the coordinates of where a picture was taken. Is it

Background location tracking not working on physical device swift

落花浮王杯 提交于 2019-12-04 16:04:57
I followed this tutorial ( https://www.raywenderlich.com/92428/background-modes-ios-swift-tutorial ) to create an app that maps the user's location in the background. It asks to follow the user's location even when the app is closed, the user presses yes, and it tracks location in the background, updating every second or so. It works perfectly in the simulator, but sideloaded onto a physical iPhone 6, it stops checking the user's location in the background. I solved this. If your background location tracking is working in the simulator but not on a physical phone running iOS 9 or later, it is

Assisting users in spotting the HTML5 Geolocation prompt

青春壹個敷衍的年華 提交于 2019-12-04 16:03:52
Working on a website where it is crucial the users accept the browser prompt. We've noticed a lot of users simply don't notice the prompt in the browser asking the user to share their location. The problem right now is this prompt is shown differently in every browser: Chrome: Top of the screen IE: Alert box Firefox: Popup out of the address bar etc. I am looking for a simple javascript or html hack that allows you to place a div next to where the prompt is showed in the different browsers. Because we want to help the users spot the prompt and inform them why they need to share their location.

WatchPosition Time Out In Geolocation

我的未来我决定 提交于 2019-12-04 15:35:28
I am working on Ionic App and want to fix issue for Geolocation Watch Position. I want to get data after every 1 minutes not after 5 sec. My code is as following, var opti = { enableHighAccuracy: false, timeout:60000, maximumAge: 0 }; navigator.geolocation.watchPosition(success_loc, error_loc, opti); I am using timeout 60000 for giving result after 1 minutes but it is giving result in 5 sec(default time). Need help to fix this problem. You need to set the maximumAge to 60000. As per the docs, the timeout option indicates the time allowed for obtaining the position. So, this is not what

get location without google play services -android

ⅰ亾dé卋堺 提交于 2019-12-04 15:35:15
问题 I know some phones do not preinstall google play sevice. I want to ask is there possible way to get location without Google Play Services , just use LocationManager. Not LocationClient. 回答1: you can use LocationManager LocationManager locationManager = (LocationManager) getApplicationContext().getSystemService(LOCATION_SERVICE); Location location = locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER); 回答2: Just use the location manager like you said http://developer.android