gps

Parsing code for GPS NMEA string

不羁的心 提交于 2019-12-22 08:58:02
问题 i am trying to parse the incoming GPGGA NMEA GPS string using Arduino uno and below code. What i am trying to do is that i am using only GPGGA NMEA string to get the values of Latitude, longitude and altitude.In my below code, i had put certain checks to check if incoming string is GPGGA or not, and then store the further string in a array which can be further parsed suing strtok function and all the 3 GPS coordinates can be easily find out. But i am unable to figure out how to store only

Geolocation and GeoIP alternative

送分小仙女□ 提交于 2019-12-22 08:55:20
问题 What alternatives are there for GEOIP and HTML 5 Geolocation that are more accurate and are able to work reliably on BlackBerry browsers? 回答1: You could look into IP2Location. However, if you're worried about accuracy, you shouldn't expect high percentages from free services. Even the pay services aren't heads and shoulders above the free ones and will always have < 100% accuracy. That's just the nature of the beast. I've heard many instances where folks inside the UK can't watch BBC online

Data structure to perform fast GPS lookups?

怎甘沉沦 提交于 2019-12-22 08:45:20
问题 I have a text file (UTF-8, ~50K lines) with city names and GPS coordinates. Example lines: San Pedro locality -3367 -5968 Argentina Buenos Aires San Pedro Talagante locality -3366 -7093 Chile Metropolitana Talagante Peñaflor locality -3362 -7092 Chile Metropolitana Talagante The third and fourth columns are the GPS coordinates of the cities in the last columns. Given a GPS coordinate, I need to find the closet city. I need to do this hundreds of millions of times. What are some tools that can

More than one location provider at same time

旧街凉风 提交于 2019-12-22 08:37:59
问题 I have some problems with location systems. I have a service that implements locationlistener. I want to get the best location using network when possible, gps if network is not enough accurate (accuracy greater than 300mt). The problem is this. I need location (accurate if possible, inaccuarte otherways) every 5 minutes. I start with a : LocationManager lm=(LocationManager)getApplicationContext().getSystemService(LOCATION_SERVICE); Criteria criteria = new Criteria(); criteria.setAccuracy

Fused Location sometimes STOPS

别说谁变了你拦得住时间么 提交于 2019-12-22 08:37:21
问题 I've been working on an app that tracks the user's position. For this I have used the google play services location module (a.k.a. fused location). All in all everything works fine. BUT sometimes, completely random, I no longer receive location updates from the google location services, at all! I mean, my app is working fine, but no location updates. Not only that,if I start up google maps it can't get a fix on my location (even with GPS turned on). Reinstalling my app doesn't fix the issue.

Every 1 Minute Gps LatLong Getting From Server Showing In Map as Marker. But Marker Geting Duplicating

回眸只為那壹抹淺笑 提交于 2019-12-22 08:03:29
问题 1.In My app Gps LatLong is Getting from Server Every OneMinute. Saved in Shared Pref ,then getting the LatLong From shared pref Showing the Marker on the Map . 2.Every One Minute I want to Move the Marker based on the LatLong. 3.But While Changing the Marker Location. Getting Duplicates . Please Help me to Solve this Issue. Inside Oncreate method i Called below Snippet in Every 60 Secs for Calling a Method. try { Thread t = new Thread() { @Override public void run() { try { while (

How to get Current GPS location(latitude-longitude) using Google API in Android App?

眉间皱痕 提交于 2019-12-22 08:02:31
问题 I want to get GPS location using Google API. My code: mGoogleApiClient = new GoogleApiClient.Builder(this) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .addApi(LocationServices.API) .build(); locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); @Override public void onConnected(Bundle bundle) { mLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient); double lat = mLocation.getLatitude(); double lon = mLocation

Get *coarse* location from GPS provider on Android

夙愿已清 提交于 2019-12-22 05:47:15
问题 My app only needs very rough location data, so I originally set my manifest permissions to ACCESS_COARSE_LOCATION , and set up a location listener for NETWORK_PROVIDER . This gave me exactly the kind of rough location estimate I needed, but only with Google Location Services turned on. I was expecting that if the user only had GPS enabled, that I would still receive a rough estimate of their location. But it seems like the only way to get ANY location information from the GPS_PROVIDER is by

Need android activity to wait until GPS location obtained

喜欢而已 提交于 2019-12-22 05:35:15
问题 Sorry for my english. I'm trying to get a single location from GPS to put on global variables latitude, longitude. GPS turns on, but the activity goes on before data is retrieved from GPS. My needs in other words... method getCurrentLocation() must finish only if a location has been found and the longitude and latitude variables are filled, so I could use them in other method. I know... user has to wait... I will solve this forward showing something on screen. What should I do? Thank you I

How debug after closing application

一笑奈何 提交于 2019-12-22 05:29:22
问题 I am trying to reproduce issue, which requires to close and reopen my application with a specific location. Here's my questions: 1) How can I view my logs (using NSLog command) when my iPhone is not connected to XCode? 2) Is it possible to set specific location (like center of the city) for iPhone simulator as default? I use GPX files but every time when I run project from scratch the location is set to unknown. 回答1: If you want to see the logs from your application under XCode choose 'Window