geolocation

If I have ACCESS_FINE_LOCATION already, can I omit ACCESS_COARSE_LOCATION?

旧巷老猫 提交于 2019-11-27 11:24:24
问题 I have a GPS app that already requests ACCESS_FINE_LOCATION permission in the manifest, now I want to add a library (MoPub) that requires ACCESS_COARSE_LOCATION . Am I correct in assuming that ACCESS_FINE_LOCATION is enough, and I can leave out ACCESS_COARSE_LOCATION from my manifest? 回答1: https://developer.android.com/guide/topics/location/strategies.html#Permission Note: If you are using both NETWORK_PROVIDER and GPS_PROVIDER, then you need to request only the ACCESS_FINE_LOCATION

Geospatial coordinates and distance in kilometers

旧时模样 提交于 2019-11-27 11:23:44
This is a followup to this question . I seem to be stuck on this. Basically, I need to be able to convert back and forth to referring to coordinates either in the standard degree system OR by measuring a distance north from the south pole along the international date line, and then a distance east starting from that point on the date line. To do this (as well as some more general distance-measuring stuff), I have one method for determining the distance between two lat/lon points, and another method that takes a lat/lon point, a heading and a distance, and returns the lat/lon point at the end

Use GPS and Network Provider at the same time in Android

随声附和 提交于 2019-11-27 10:54:36
问题 I have implemented a locationlistener in my app which uses the Network Provider. This all works fine because i want a location quickly and with GPS Provider it takes ages. But I've come to a point in my app where location has to be accurate (max 5-10meters). I was wondering if it's possible to use the GPS provider with the Network Provider at the same time and then get the best result of both? And is it also possible to let me know when the GPS provider provided me with an GPS Location? So

Longitude and latitude value from IP address

℡╲_俬逩灬. 提交于 2019-11-27 10:41:27
Is it possible to get the longitude and latitude value from IP address in asp.net? If it is possible, please let me know how can I get this. MaxMind Geolite city is free . If it is not good enough, you can apparently upgrade to a more accurate paid-version. I can't speak for the quality of the paid version, as I have never used it. If you like your SQL, download the CSV version . Load it into your database of choice, and query away. The faster and space-efficient option is to download the file binary blob version of the same database, and then use the C# class to query it. Alternatively, I

Django, Retrieve IP location

半世苍凉 提交于 2019-11-27 10:37:26
I would like to redirect my users to specific location areas in my website, by detecting their location from their IP address. What would be the best way to achieve this under Django 1.1.1 ? Thanks Edit: I want city based locationing on europe. GeoDjango looks like it will suit your needs. I'm not sure exactly how you would want to direct users, but using the GeoIP API , you can do something like: from django.contrib.gis.utils import GeoIP g = GeoIP() ip = request.META.get('REMOTE_ADDR', None) if ip: city = g.city(ip)['city'] else: city = 'Rome' # default city # proceed with city The Docs

Check if a geopoint with latitude and longitude is within a shapefile

时光怂恿深爱的人放手 提交于 2019-11-27 10:30:30
How can I check if a geopoint is within the area of a given shapefile? I managed to load a shapefile in python, but can't get any further. Richard This is an adaptation of yosukesabai's answer. I wanted to ensure that the point I was searching for was in the same projection system as the shapefile, so I've added code for that. I couldn't understand why he was doing a contains test on ply = feat_in.GetGeometryRef() (in my testing things seemed to work just as well without it), so I removed that. I've also improved the commenting to better explain what's going on (as I understand it). #!/usr/bin

How does Google calculate my location on a desktop?

会有一股神秘感。 提交于 2019-11-27 10:12:20
Right this is confusing me quite a bit, i'm not sure if any of you have noticed or used the "my location" feature on google maps using your desktop (or none GPS/none mobile device). If you have a browser with google gears (easiest to use is Google Chrome) then you will have a blue circle above the zoom function in Google Maps, when clicked (without being logged into my Google Account) using standard Wi Fi to my own personal router and a normal internet connection to my ISP, it somehow manages to pinpoint my exact location with a 100% accuracy (at this moment in time). How does it do it? they

How to track the device location (iOS and Android) device using Phonegap

孤者浪人 提交于 2019-11-27 10:02:46
问题 I would like to know when a user arrives or leaves certain location. I was trying to do this using the wireless network (check for mobile devices), but I couldn't for several reasons. 1) I needed real time updates or every 1 - 5 min of the information about which devices are connected and which devices have just disconnected. 2) I had very high ping from my PC to my iPhone on the same network (still don't know why). Now I want to do it using geolocation from a Phonegap application (running in

Phonegap geolocation sometimes not working on android

。_饼干妹妹 提交于 2019-11-27 09:54:17
问题 I have using cordova v3.4.1 to build android and ios app, on ios geolocation function is returning very quickly and works fine always,but on android, sometimes it not working. The strange thing is after I reboot my android phone,it works fine. In more than a few hours geolocation gets the postion very quickly both in wifi and 3G. But after serval hours, I open the app again, the geolocation can not work.Sometimes when I outside, it can get postion with gps satellite,but very slow,often occur

Android Google Map how to check if the gps location is inside the circle

三世轮回 提交于 2019-11-27 09:38:10
问题 I'm trying to detect if a user is in the radius of a Marker , using the users gps location. I have the marker's coordinates, but I don't know how to calculate whether the user is in the area. I've tried to use the following, but even when the current location is inside the circle I keep getting the "outside" message. public class MapaEscola extends FragmentActivity { private GoogleMap googleMap; private Serializable escolas; private ProgressDialog dialog; private Circle mCircle; private