gps

Android GPS Proximity Alert when starting within the set proximity

故事扮演 提交于 2019-12-12 10:19:54
问题 I would like to use Android's Proximity Alert for my garage door app. I have a button setup, that when pressed add's the proximity alert and starts tracking location. I want it to track indefinitely until I either enter or exit the proximity. If entering it will open the garage door, if exiting it will close the garage door after which I remove the proximity alert and GPS shuts off. I have it working close to perfectly. The problem is, when I press the button while in my driveway, hence in

Google maps connecting markers

混江龙づ霸主 提交于 2019-12-12 09:59:24
问题 I have hundreds of GPS coordinates (collected by a GPS module in my car) in my database and I am loading them to google maps. Is there some way I can connect these coordinates in same way as google waypoints do (so the connecting line always stays on a road)? 回答1: You would probably want to use the Google Directions Web Service API. You would use something like PHP or Python to do a call between each of the points and then cache the directions on your server. Then serve them out as Polylines

Android emulator, Finding mock user location coordinates. Having problems

有些话、适合烂在心里 提交于 2019-12-12 09:13:59
问题 Hey guys, I'm having trouble trying to find the user's longitude and location as I run my program and set the telnet command for geo fix for the mock location. While the emulator is running, I set the mock coordinates only for the emulator to become unresponsive and have my program fail in detecting the input coordinates. import android.app.Activity; import android.content.Context; import android.location.Location; import android.location.LocationListener; import android.location

Android Gps Routing system

北城余情 提交于 2019-12-12 09:05:16
问题 I'm developing an android application that would locate the user(assuming that the user is on the road) and the app will create the shortest route for the user to take to be able to go to the users chosen destination. Locating the user isn't the question since there's an API for that here: http://www.vogella.com/articles/AndroidLocationAPI/article.html so here's the catch. The roads ,intersections and their distances can be mapped or declared via variables in the code but my problem is that

Use of Standard location service for tracking traveled distance in a foreground/background app

淺唱寂寞╮ 提交于 2019-12-12 09:02:16
问题 I have to develop a kind of GPS navigation application that needs to constantly keep track of the position of the user, which is moving by car. In the specific, I don't have to display the current location on a map but just to record its position with the best possible precision in order to calculate the total distance traveled. Of course the application needs to continue its work in background if the user switch to another app, a phone call come in or something like that… From the tests I

How to do Realtime/fast processing of GPS data in web application?

点点圈 提交于 2019-12-12 09:02:08
问题 I am writing a web application for mapping Real-time GPS coordinates on Google maps coming from a GPS device, for fleet managment. Since the flow of data is very fast from the GPS device to web application for database it becomes very heavy and the database is being queried every 5 seconds(via AJAX from web browser running the website) it becomes more heavy. Keeping the updates in real-time is becoming very difficult a lagging of 30 seconds to 60 seconds is created between the actually update

How do I detect user's location from a webpage opened in the Android browser?

别说谁变了你拦得住时间么 提交于 2019-12-12 08:56:30
问题 Visiting www.google.com on the Android browser (or even with an android spoofed user-agent), presents the option to "Share Location" . When clicked, it uses the GPS/Cell phone towers to figure out the location. I tried the google.loader.clientLocation but that only works using the IP address. Is there a method to tap into the Android OS and access GPS data from a regular web application (and not an Android application) similar to the way Google does? [Perhaps Google uses the Google Gears app

settings数据库查看location(GPS)设置模式的命令

独自空忆成欢 提交于 2019-12-12 08:28:25
App层 Android平台中,GPS的开启和关闭主要在设置中: 其模式有三种: 1.High accruacy 高精度 使用GPS,Networks,Wi-Fi和Bluetooth进行定位, 准确度最好,但比较费电 2.Battery saving 使用Wi-Fi, Bluetooth和Networks进行定位, 速度快,省电,但是精度较差。 3.Device only 只使用GPS进行定位 当Location为“ON”, Mode为“High accruacy”或者“Device Only”时, settings数据库location_providers_allowed字段将被修改为“network,gps”或者“gps”(修改字段的代码LocationSettings.java中)。 1. 从settings数据库查看location的设置模式:   adb shell settings get secure location_providers_allowed 利用上述命令得到的结果分析如下:   1) 关闭gps    结果: 空   2) 开启gps             高精度 结果:   network,gps             网络定位:     network             gps:     gps  

React Native Android location request timed out

邮差的信 提交于 2019-12-12 08:22:09
问题 In IOS there isn't a problem while looking for gps coords. It works fine. On Android side its not stable as IOS. This problem both in real device and emulator. Sometimes it can find location, but sometimes not. Looking for 3days but there wasn't find a solution. When my app cannot find my location, I tried via Google Maps app, it works like charm. Here is my code for both IOS and Android; getCurrentPosition() { navigator.geolocation.getCurrentPosition( (position) => { this.setState({

How to? Listen for Location Setting being turned ON (Android App)

ⅰ亾dé卋堺 提交于 2019-12-12 07:52:30
问题 So I've spent the past few weeks working on my Android App and looking into the best way of implementing what I need to do, but still can't quite get it right.. Any/all help is greatly appreciated, as I am still getting the hang of things.. Task: (Assuming the "Location"/GPS Setting is currently off), I need to have my App constantly be listening for the "Location" Setting to be turned ON.. At this point, simply start an Activity. Ideas: These are all the different ways I think it could