geolocation

Efficient Background service for tracking user location

吃可爱长大的小学妹 提交于 2019-12-20 09:46:13
问题 I am developing a small android application in which I want to have Geolocation functionality. What I want to code is one service which gives the updated location of a user whether they are using my application or not. I know that if I am continuously checking the user's location it will drain the battery of the device, so I want good solution for that. For example, to give me updates every 5 or 10 minutes. I have read about this question a lot but I wanted to get one good solution. I read

Querying for things near a geolocation?

人盡茶涼 提交于 2019-12-20 09:37:57
问题 I have a query that attempts to find things within a certain geolocation, but the results that it brings back are a little bit... strange. I had previously posted this thread and the community helped me find a formula that I needed: Querying within longitude and latitude in MySQL but the query now gives really wacky results. My data is surrounding the city of San Francisco which has the lat/lng 37.780182 , -122.517349 Query: SELECT id, hike_title, lat, lng, ( 3959 * acos( cos( radians(37) ) *

How to get GPS Coordinates from all the users of my application?

淺唱寂寞╮ 提交于 2019-12-20 09:13:43
问题 Explanation/Scenario: I am developing a app that needs to get in real-time(like 3sec's update) the location of all users of mine app, and these users knowing that, too, will see the another users location, in a map, for example: This location, needs to be in real-time, because all of the users have access to the map, they need to know where are the users of the app, in the exact moment, to find them selves. Question: What i need to do to make my application get in real time the location of

street address to geolocation lat/long

回眸只為那壹抹淺笑 提交于 2019-12-20 08:52:19
问题 I am considering rChart/LeafLet to create a shiny app for housing sales in my county. There are several hundred houses for sale at any given time. Want to map street address-to-geolocation (lat/long) for all and display them on a map. So, I am looking for a r package, service or database that can map street address to geolocation. 回答1: Here is a function based on Harvey's suggestion. It will look for the address and give the coordinates of the first result. Have a look at the structure of x

Need to get latitude and longitude from google map API

廉价感情. 提交于 2019-12-20 07:40:20
问题 https://developers.google.com/maps/documentation/javascript/examples/places-searchbox I'm using the map which I got from above link. It works fine in my website. When I search for a place ,that location will be shown in map. I need to get its longitude and latitude and should be displayed in a textbox when I click on a place on Google map. The code is shown below <!DOCTYPE html> <html> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no"> <meta charset="utf-8"> <style>

How to get location of android device by its android id

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-20 07:28:56
问题 I am new in android and recently start learning about Android and I am trying to get location of any android device by its unique android id. By that I can track the approx or exact location either by GPS or network provider. In detail I mean to say that whenever i enter any Android id in my app i can get device location in my application. Thanks for your kind help. 回答1: Finally I am able to do with this code: public class MyService extends Service implements LocationListener{ String GPS

How do I use MaxMind's GeoIP database to determine location?

倖福魔咒の 提交于 2019-12-20 05:47:07
问题 So, I was told in my previous question that I can use the databases provided by MaxMind to determine locations. So, I got their databases downloaded from their site. They are csv files and open up in Excel. InetAddress ip = InetAddress.getLocalHost() is how I get the IP of my computer. From there I do String justIP = ip.getHostAddress() My question is: How do I resolve justIP to a city location using the DB I just downloaded ??? I am new to this so a little help will be appreciated. One of

Can't turn on location on android api23?

丶灬走出姿态 提交于 2019-12-20 05:38:16
问题 I have used the following code and the dialogue that asks for permission shows as expected. But when I click "allow" it doesn't do anything. The log message doesn't appear as if the permission wasn't granted so I went to my parameters to verify if location is "on" and it was "off". Wasn't it supposed to be on because I granted the app access to my location ? If I manually turn it "on" and then run the app again, once it asks for my permission, it works and shows the log message but isn't the

Get WikiData Identifier for city by GPS location

蹲街弑〆低调 提交于 2019-12-20 03:09:52
问题 I want to get the city /settlement at a specific gps location. meaning the closest one in a given range or at best the closest. i found some example queries in the wikimedia data examples. I try to adopt then but i get only errors or timeouts here is my current query: SELECT * WHERE { ?city wdt:P31/wdt:P279* wd:Q15642541 . // only settlements # Search by Nearest SERVICE wikibase:around { ?place wdt:P625 ?location . bd:serviceParam wikibase:center "Point(8.4024875340491 48.9993762209831)"^^geo

Global location input autocomplete

杀马特。学长 韩版系。学妹 提交于 2019-12-20 02:34:26
问题 I was looking for a plugin to create a smart location form field which has a suggested autocomplete. I was unable to find anything suitable (Google Geocode is too unreliable on its own, and it isn't designed for this) so I built my own. I thought it was crazy that in 2011 an open-source global location input plugin like this didn't exist so set out to give it a go. The demo is here http://labs.unxposed.net/unxposed/geocode/ and is working on Chrome and Firefox 4. Download is here https:/