FAQ Database Discussion Community


View GPS Data from SQL Server database in map [closed]

sql,sql-server,database,google-maps,gps
Hello I have MS SQL Server database with a table Drives with columns Latitude and Longitude. Is there a simple way how to see these GPS Points in the map using SQL Server Management Studio or some similar tool. Plugin for ssms for example.. ?

Implementing background services on Android

android,gps,background-service
I'm building an application for Android to track the user GPS positioning during a ride (by sending events with positioning information to a server), but I've got two issues so far. Since the user could suspend the application in order to use other applications during the ride, application would stop...

Problems with check if GPS, and bluetooth is activated

java,android,bluetooth,gps
I have some problems with a check if user has turned on bluetooth, and gps. If the GPS is turned off the "OK" icon allways display status as the gps is activated. If the bluetooth is turned on the "OK" icon will show. But not the "notOK" icon when it's...

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

android,google-maps,gps,geolocation,android-maps-v2
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 do not know how to calculate whether the user is in the area. I've tried to use the following, but even when the current...

Increase accuracy of GPS (in HTML5 geolocation)

javascript,google-maps,gps
How can increase the accuracy of GPS in this code? var map; function initialize() { var mapOptions = { zoom: 18 }; map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions); // Try HTML5 geolocation if(navigator.geolocation) { navigator.geolocation.getCurrentPosition(function(position) { var pos = new google.maps.LatLng(position.coords.latitude, position.coords.longitude); var marker = new google.maps.Marker({ position: pos, map: map,...

Kalman-filtered GPS data is still fluctuating a lot

java,android,gps,kalman-filter
He everyone! I'm writing an Android app that uses the devices GPS to calculate a vehicles driving speed. This is supposed to be accurate to about 1-2 km/h, and I'm doing it by looking at the distance between two GPS locations and dividing it by the time these locations are...

Runtime errors when method is invoked?

java,android,error-handling,nullpointerexception,gps
I'm having some issues when I am running my method. How can I get it working so my mock locations will work on my actual device. (Ps. I've included permissions). This provides a null pointer exception and I am not to sure why? Method: private void setMockLocation() { { Context...

GoogleMap V2 doesn't start with user current location

java,android,google-maps,gps,location
I am newbie on Android. I want to develop a simple GoogleMap application. But my app doesn't start with user current location my user current location object is null on application start, when i press the menu key and rerun my app, it shows but i want to show current...

Location accuracy defined - iOS

ios,gps,core-location
What is the statistical intention, even if an approximation, of the returned "accuracy" or "uncertainty" on iOS? For instance Android documentation gives an interpretation of its returned accuracy figure as being approximately one standard deviation in this sense: We define accuracy as the radius of 68% confidence. In other words,...

how can i get direction of mobile [closed]

android,google-maps,gps,augmented-reality
i'm developing an augmented reality application by android and i need some information about the location and direction of device from google map in mobile . how can i get those information , if there's any tutorial explain that ....

GPS location not accurate

google-maps,gps,location,nmea
I am using a GPS device to track my device location. The data was received in NMEA format and I parsed the latitude and longitude from the GPRMC data. But the issue is that the location obtained when checked in google maps was found to around 600 meters shifted from...

Convert repeating single dimensional array to multidimensional array in PHP

php,arrays,multidimensional-array,gps
I have a single dimentional PHP Array that has latitude, longitude, and time data. The data goes eg [lat, long, date, lat, long, date, lat, long, date.... etc etc] Array ( [0] => -28.0447606 [1] => 153.4340961 [2] => 1424136836118 [3] => -28.0447612 [4] => 153.4340963 [5] => 1424136876189 [6]...

vb.net thread with loop not working in Windows 8.1 but works in Windows 7

vb.net,multithreading,gps,windows-8.1
I am working on a Windows form application to communicate with a GPS which has been built in Visual Basic 2010 express. I have tested it with Windows 7 using an external GPS connected by bluetooth and it works fine but i am having problems on windows 8.1. The particular...

When i try to creat google map the exception error occur

android,google-maps,gps
If i Try to create a Google Map in My device,I have Imported my Google play Services lib file in My SDK and then i tried to run my app but it will showing me the error of unfortunately Stopped your Apps, and in Log chat i will get the...

How to check processes and services consuming lots of battery

android,service,gps,battery,android-fusedlocation
I have created an app which consuming 48 percent of battery in some device which is highest in power management task, but in some device its 5-6 %, i am running a service in background all the time which fetches the latitude and longitude and send it on server if...

Android: How to draw objects onto the screen based on GPS and Gyroscope

android,gps,accelerometer,augmented-reality
I've been working on an augmented reality application for my university that places a POI button onto each building when looking through a camera preview. I am supposed to program it from scratch, without using something like Layar or Wikitude. I have all of the information from the various sensors...

Plotting GPS coordinates using ggmap

r,ggplot2,gps,ggmap
I am attempting to create a plot of gps coordinates on a map in R using ggmap. Here is the first 10 rows of the dataset I am using: gps[1:10,] X_id lon timestamp lat 1 5555bcda65bc7d0f2c8d1a9c -4.018623 2015-05-15T09:31:06.859Z 53.23945 2 5555bcdb65bc7d0f2c8d1a9f -4.018623 2015-05-15T09:31:07.371Z 53.23945 3 5555bcdb65bc7d0f2c8d1aa2 -4.018623 2015-05-15T09:31:07.868Z 53.23945 4...

Programatically adjust Computer Time

windows,matlab,unix,time,gps
I am getting the GPS time from an external instrument. I would like to set the windows computer time to that GPS time. Does anyone know a command to manually change the Computer time ? PS: It might also be interesting to know for unix machine....

Ripple geolocation settings being ignored by Cordova application

cordova,gps,cordova-plugins,visual-studio-cordova,ripple
I'm using Visual Studio 2013 Update 4 and I've installed the Visual Studio for Cordova add-on (version 0.3.22015.1). I have created an Angular based app based on the Ionic SideMenu Starter Template for Cordova example. I have included the Cordova geolocation plugin in the config.xml file. Within this example I...

Unable to get longitude and latitude in ios8 by GPS

ios,ios8,gps,location,core-location
I am using iOS8 and using the following code for getting longitude and latitude by GPS: -(void)CurrentLocationIdentifier { locationManager = [CLLocationManager new]; locationManager.delegate = self; locationManager.distanceFilter = kCLDistanceFilterNone; locationManager.desiredAccuracy = kCLLocationAccuracyBest; if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0 && [CLLocationManager authorizationStatus] != kCLAuthorizationStatusAuthorizedWhenInUse) //[CLLocationManager authorizationStatus] !=...

Locating in google-maps in desktop [closed]

google-maps,gps
How does google maps find me(geo-locates) when I use google maps in Desktop?Desktops do not have gps receivers like mobiles,then?

Intercept serial port data in Delphi

delphi,gps,serial-port,sniffer
I know how to comunicate over serial port using TComPort, but I'd like to view the data going in and out a virtual (USB<=>RSR232) COM port without interupting the transmition and (obviously) opening the port. To be precise I want to see the GPS data from the USB GPS receiver....

HTML5 Geolocation shows wrong speed

html5,gps,geolocation
I'm using HTML5 Geolocation to show information about visitors GPS information. When I tested the function yesterday while I sat in a bus, the speed showed under 25 km/h when the bus went over 70 km/h. Why?

OnLocationChanged is never called

android,gps
I made service to get location changes. But even if I requested for LocationUpdates, onLocationChanges(Location loc) is never called. public class LocationService extends Service implements LocationListener{ ... @Override public void onProviderDisabled(String provider) { } @Override public void onProviderEnabled(String provider) { } @Override public void onStatusChanged(String provider, int status, Bundle extras)...

Not getting the location [duplicate]

android,gps,location,locationmanager
This question already has an answer here: getLastKnownLocation method always returns null 1 answer I am making a app in which i have to show a splash screen for 1/2 sec.While the splash is loading i have to get the user location.location accuracy is not concern.So for this i...

How do I get the data from a serial GPS connected to my android device?

java,android,android-studio,gps,serial-port
I am working on a project where I have to connect my android device (LG G3) to a GPS with usb. I can't figure out how I can get the data out of my GPS and I do not want to use the device it's internall GPS because I need...

How to receive gps data from device with php?

php,data,gps
I have a car gps device, the only thing I can change is the IP-address. Is it possible to have shared hosting with a dedicated IP-address(that part is possible) and then to have a php script that picks up the data that is being send? So what is in my...

How to get GPS location and send in SMS android

android,gps,sms
I can not get the GPS to work. I am saving it in a SharedPreference called gps and it will print in a Toast as "http://maps.google.com/?q=" + lat + " , " + lon this is so when it is sent in a SMS they receiver can just push the...

Are there CSV files or lookup table to correct for real north now and in the future?

csv,gps,embedded,lookup,compass
I am currently working on placing a compass on an embedded microchip PIC32 family device I am working on. The compass is made in another part of the world and once assembled I want to be able to use it in other parts of the world without having to re-calibrate...

Android device needs restart/reboot to get GPS locations after having GPS chip active a long time

android,gps,google-api-client
I'm developing yet another GPS tracking application for Android and I'm testing my code in Sony Xperia SP c5302 with Android 4.3. I made a background service which uses Google Play Services' GoogleApiClient to get fused locations. I'm able to get locations fine but after a couple hours I realize...

Alerting user that the app still uses Location Updates (GPS)

ios,ios8,gps,core-location,cllocationmanager
Some apps, including the apple maps or some navigation apps are alerting the user with a kind of blue alert stripe if you send the app to background, that the app still uses the GPS (LocationUpdates) Is there a public api or way to do this automatically or should it...

Get current latitude and longitude android

java,android,gps,geolocation,location
Requirement: 1.Sometimes(not everytime) I am getting latitude and longitude 0.0. 2.I want to know how to get the location update after user has enabled the gps from the settings. Here is my code public class GPSTracker extends Service implements LocationListener { private final Context mContext; // flag for GPS status...

GeoPoint class not found in Android Studio?

android,android-studio,gps
How we can use the Geopoint in android Studio? I am using the Geopoint class in my Eclipse project,now I am trying to convert this into the Android Studio project i have converted almost it but there 'Geopoint' are't resolved a type.

Where to start in finding users in a radius from me [closed]

ios,gps,geolocation
Where to start to write app to have users find each other based on their defined location? I'm looking for something similar to the tinder search for people in a specific location. Would I be using map points in mapkit or GPS locations and if so, can anyone point me...

Android: Showing users address and location in a widget

android,gps,latitude-longitude,street-address
I am trying to show users current address and coordinates on the screen, for example first it will show the coordinates and after couple of seconds it will show the adress of the user. But i couldn't do it. How can i do that ? Edit 1: So far i...

Best way to get user GPS location in background in Android

android,gps,location-provider,fusedlocationproviderapi
In my android app i want to get user current location every few minute interval and update in to my center server using web service. Currently i am using Fused Location Provide for get user current location, See link now i want to know what is the best way to...

GPS is not implemented for your platform - Kivy / Plyer / PyCharm

android,python,gps,pycharm,kivy
This is the example app given included in plyer. I want to see how it works because I'll use it in my project. I want to use the GPS function. But it says that it is not implemented for my platform :( How to make it work? Thanks! ...

Android GPS tracker return everytime 0 for the longitude and latitude

android,gps,location
I m trying to get the user location using the service that i call in my mainActivity.I believe i made already all the work needed but the problem i get back everytime 0 for the longitude and 0 for latitude ! I added user permission too but its not working...

How to write this in python

python,gps
I am not super experienced in writing code. Could someone help me out? I am trying to write some simple python to work with some GPS coordinates. Basically I want it to check if the gps is +or- ten feet to my a point then print if it is true....

Auto send SMS with GPS location

android,gps,smsmanager
I'm developing an app to send user location via SMS after a fixed time. I have almost accomplished my task. I'm only facing problem when GPS location is not get SMS is sent but when i on GPS the sending sms is not working. String myAddress = ""; List<Address> location;...

Android getLastKnownLocation(LocationManager.GPS_PROVIDER) returns null

android,gps,location
I'm using following code to get my current location. It works perfectly using NETWORK_PROVIDER. But whenever I use GPS_PROVIDER, it always returns null. I know the same question has been asked many many times but none of them solved my problem public class GPSTracker extends Service implements LocationListener { private...

GPS ublox-6 neo6 communication with Microcontroller using SPI

gps,arduino,microcontroller,spi,pic32
I'm working with a GPS module, ublox-6 neo6 and trying to pull data off of it from a pic32 microcontroller using SPI. I'm using GPIO pins to do this so the SPI library is off the table. Apparently, all I need to do is send it 0xFF and read what...

GPS Tracker keeps Asking for Location (Android)

java,android,gps
I have got a small problem, my GPS Tracker keeps asking for activating Location while i activate it. I analysed and reanalysed my class but can't find my error... Someboy care to help? GPSTracker.java public class GPSTracker extends Service implements LocationListener { private final Context context; Location location; boolean isGPSEnabled...

Getting coordinates when GPS is fixed - Android

android,gps,google-maps-android-api-2,locationmanager
I am trying to learn work with location service on android. I used the easiest code which I found and try learn on it how it works. But the problem is when I want put coordinates to textView. Here is Code: package com.example.bakalarka; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import...

After making function call in the programme ,control is jumping into the unspecified memory location

c,gps,arm,embedded
i am developing a gps code which takes the raw data from the gps and decodes the data and saves it into the respected variables(arrays).The problem is whenever i make the function call,it is executing the function statements upto the end of the function ie., "}" ,and after that the...

Calculate latitude longitude for added height

android,gps,latitude-longitude
I want to draw a line chart on the Android google map. I have gps coordinates of the path and I want to show the speed of the car on the map with the height of the line. See this image Something like this, For each gps (lat,lng) point I...

How to hide the app icon programatically in iphone app

ios,xcode,gps
I am making an app in which i will track user location. so the point is that whenever user install the app, after installation the app will be hide and works in background and give data of user location through gps to server. so i want how to hide app...

Enabling GPS in Android

android,gps
I am using GPS location in my app, but when GPS is not enable app crashed. as I am a newbie to android develpment, I googled this and I found this answer in Stackoverflow Check if gps is on In Kitkat (4.4) The problem here is that PackageUtil & ACCESS_FINE_LOCATION...

Android gps programmatically turning on and turning off

android,gps
i have written a simple gps code , which is turning on and turning off the gps programmatically in some device(say moto g) but some older version or Samsung duos and some other devices it not turning on gps programmatically . please help me regarding this issue, If gps is...

Create picture from geocordinates [closed]

c#,google-maps,gps,openstreetmap
I have the geocordinates of a trip and I would like to save the picture that display the path on a map. Do you know an api or library that woud do that ?

Scale coordinates on radar

java,android,math,gps,location
I'm currently developing an radar for android. (Following this tutorial: http://www.androidph.com/2009/02/app-10-beer-radar.html ) I'm getting all users within a range of 5KM around my current location from the server after that I draw in my customview like this: float xU = (float)(userLocation.getLongitude() + getWidth() / 2 - currentLong); float yU =...

getLastKnownLocation() returns null [closed]

android,google-maps,gps,android-location
I have read a lot of Q&As on this topic here on SO but I have to say that none of them works. My problem is that, even though I have GPS enabled, I cannot get a location unless I open Google Maps and get my location and then go...

java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setTextColor(int)' on a null object reference [duplicate]

android,gps
This question already has an answer here: What is a Null Pointer Exception, and how do I fix it? 12 answers im trying to build a simple GPS app that can give the user his current location, his speed, his heading and if he is or isn't moving. after...

Angularjs $rootScope.$broadcast when watch position to pass message from factory to directive

angularjs,angularjs-directive,gps
I want to create factory which will navigator.geolocation.watchPosition and everytime will broadcast to rootscope then directive will listen $scope.$on. Is there any performance issue on the way or better how way to do it? The device with this app will be on the always on the move.

interpolation/lookup in R

r,gps,interpolation,lookup
I'm switching to R from excel and was wondering how to do this in R. I have a dataset that looks something like this: df1<-data.frame(Zipcode=c("7941AH","7941AG","7941AH","7941AZ"), From=c(2,30,45,1), To=c(20,38,57,8), Type=c("even","mixed","odd","mixed"), GPS=c(12345,54321,11221,22331)) df2<-data.frame(zipcode=c("7914AH", "7914AH", "7914AH", "7914AG","7914AG","7914AZ"), housenum=c(18, 19, 50, 32, 104,11)) First dataset contains zipcode, house number range (from and to), type meaning...

HTML5: get device altitude

javascript,html5,gps,altitude
In my HTML5 page I would like to retrieve the altitude of the device (I'm testing on my Nexus 5 with Chrome mobile). As mentioned in HTML5 Geolocation Altitude, the altitude returned by the Geolocation API is always null. I've read that some native Android apps use different approaches such...

GPS icon not disappearing when google maps api is being used in the app. iOS

ios,google-maps,gps,cllocationmanager
I am using google maps in my application and the problem is that even if i use stopUpdatingLocation and stopMonitoringSignificantLocationChanges, the GPS icon will not go away. I think it is because of google maps in the application. My Question is that how to remove GPS icon when using google...

How to select a region of GPS coordinates from multiple tracks?

java,algorithm,gps,machine-learning
I have multiple GPS tracks(vector of 2d latitude, longitude coordinates) that I have created using my mobile device. They have different lengths and directions. I want to average this tracks and create just a single one. As a first step I would like to select only the points that are...

Location Manager - requestLocationUpdates crashes

android,multithreading,gps,geolocation
I am trying to fetch current user location - city, using the code below : private String getCurrentLocation() { LocationManager locManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); LocationListener locListener = new MyLocationListener(); try { gps_enabled = locManager .isProviderEnabled(LocationManager.GPS_PROVIDER); } catch (Exception ex) { } try { network_enabled = locManager .isProviderEnabled(LocationManager.NETWORK_PROVIDER); } catch (Exception...

Is polling gps location data within a non-wakeful Service a good practice?

android,service,gps,location
In a regular activity, it is mandatory to register to LocationManager when we want to receive updates, and remove updates sometime later, e.g. within onPause() for instance. However, in a non-wakeful service, which can die at any given time, how can I assure that the LocationManager is not keeping the...

Getting GPS in service in android

android,gps,android-service,android-handler
My problem is not new, but none of answers in Stackoverflow was helpful for me. Situation: I have a service which works with an Alarm. it repeats every 1 minutes and run a service for me. in that service I need to send GPS data to a web server. the...

android locationlistener return null value

java,android,gps,location,illegalargumentexception
Main Java File: public class MainActivity extends Activity implements LocationListener { TextView tv; TextView tv2; TextView tv3; LocationListener locationListener; static final String tag="********MAIN********"; LocationManager lm; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); lm= (LocationManager) getSystemService(LOCATION_SERVICE); } @Override protected void onResume() { super.onResume();...

Writing GPS data in a simple image file WITH NO PREVIOUS GPS data in it

c#,image,gps,metadata,exif
-> C# I want to write (and read afterward) a GPS data in an image with no GPS data already present in it! I know this question is everywhere on internet but they didn't tell you how to write specifically in an image with EMPTY GPS information. If you are...

c# calculater bearing between two lat and long coords from NMEA log file?

c#,gps
With the following extract from a GPS log: $GPGGA,153500.009,5137.2603,N,00244.8715,W,1,10,0.8,50.6,M,51.4,M,,0000*71 $GPRMC,153500.009,A,5137.2603,N,00244.8715,W,037.7,101.7,300912,,,A*74 $GPGGA,153500.059,5137.2601,N,00244.8706,W,1,10,0.8,50.6,M,51.4,M,,0000*74 $GPRMC,153500.059,A,5137.2601,N,00244.8706,W,038.0,101.8,300912,,,A*76 $GPGGA,153500.109,5137.2600,N,00244.8697,W,1,10,0.8,50.6,M,51.4,M,,0000*78 $GPRMC,153500.109,A,5137.2600,N,00244.8697,W,038.3,101.9,300912,,,A*78...

R - How to convert latitude and longitude coordinates into an address/ human readable location?

r,gps
How can I convert latitude and longitude coordinates into an address/ human readable location in R? For instance I have these data below: humandate lat lon 09/10/2014 13:41 41.83174254 -75.87998774 09/10/2014 13:53 41.83189873 -75.87994957 I want find out what the address/ location is for latitude 41.83174254, longitude -75.87998774. Is it...

Android runtime permissions on android versions below M?

android,gps,android-location,android-permissions
Recently my ola cabs application, after the latest update, asked for location permission at runtime. It did not open the location settings screen but just by clicking on yes, my location (GPS) of the device was turned on and the application proceeded without going to location settings or any...

Retrive geolocation in real time (HTML5)

javascript,html5,google-maps,gps,geolocation
I have this code: var map; var geocoder; function initialize() { var mapOptions = { zoom: 18 }; map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions); // Try HTML5 geolocation if(navigator.geolocation) { navigator.geolocation.getCurrentPosition(function(position) { var pos = new google.maps.LatLng(position.coords.latitude, position.coords.longitude); var marker = new google.maps.Marker({ position: pos, map: map, title: 'Posizione Attuale' });...

Android get location from GPS

android,gps,locationmanager
My situation is like that the user has their tablet with them all day and its gps or location can be turned off whole time to save battery, and then wanna post something using my application which requires them to turn on the location and then upon posting I wanna...

iOS Distance between two GPS Location

ios,xcode,gps,gpsd
I have confusion calculating the distance between two GPS points is distance or displacement? Like there are two coordinates (A&B) which are on same x axis with respect to earth. But i take a long u-turn to reach from A to B. i think it will only give me a...

Get user location in background

android,gps,location
I have an app that updating user location is the main feature of it. So far I have a class that get users location through both GPS and NETWORK providers . It works just fine : public class UserLocation { private String TAG = "UserLocation"; Timer timer; LocationManager locationManager; OnLocationResultListener...

Storing javascript variable into a HTML text box

javascript,html5,gps,geolocation
I am using the HTML5 Geolocation and want to store the latitude and longitude into two separate text boxes instead of being simply displayed on the screen Below is the code: Current Location: <BR> <button onclick="getLocation()">Locate</button> <p id="demo"></p> <script> var x = document.getElementById("demo"); function getLocation() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(showPosition);...

gps location xamarin android not working

android,gps,xamarin,latitude-longitude
In list viewList item get the gps location using this code segment but it is not working(public class ItemGeoLocationActivity : ListActivity, ILocationListener the class) Please look at it what I did wrong. [Activity(Label = "ItemGeoLocationActivity")] public class ItemGeoLocationActivity : ListActivity, ILocationListener { LocationManager _locMgr; private string Latitude; private string...

Android Google Map not showing my location?

java,android,google-maps,gps,location
I am currently working on a Google Map current location application. Everything is good and there is no error detected. When I run my application, Google Map is able to load but is not showing my current location. So I put my logcat here and please someone help me. Is...

Google maps API marker refresh

python,html,google-maps,gps,refresh
I'm building a web site service for a GPS localisation service using a Syrus GPS modem. I have two files, one python code to catch the info coming from the modem and another HTML file which is the webpage, the python script rewrites directly to the HTML using: def replace_line(file_name,...

onPause(), different results from home and back button

android,gps,back-button,onpause,android-homebutton
I'm creating an application which uses locationManager() to handle updates from the GPS. When the app is closed, I want the updates from the locationManager to stop and has this piece of code at the moment. @Override protected void onPause() { super.onPause(); if(locationManager != null){ locationManager.removeUpdates(locationListener); } When I exit...

Android GPS isn't providing updates anymore

android,gps
My own android app isn't providing me with anymore GPS location updates. I've tried to build the simplest app possible and it's still not working. There's a blinking GPS icon in the status bar (so the GPS can't be turned off correct?), however I don't get locationChanged updates. I have...

Turn On GPS on android 5.O.2 Lolipop not work Sony Experia Z1, other device work properly

android,gps
on MapActivity protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //show error dialog if GoolglePlayServices not available if (!isGooglePlayServicesAvailable()) { finish(); } setContentView(R.layout.activity_add_map); ButterKnife.inject(this); progressDialog = new ProgressDialog(this); progressDialog.setMessage("Loading ..."); progressDialog.show(); turnGPSOn(); setUpMapIfNeeded(); } @Override public void onLocationChanged(Location location) { // TextView locationTv = (TextView)...

How get the current latitud and longitud without use getLastKnownLocation method in Android?

java,android,gps,location,latitude-longitude
I am trying to get the current position of the phone, for this I use the GPSTracker tutorial, the problem is always use the method getLastKnownLocation and return older position. if (isNetworkEnabled) { locationManager.requestLocationUpdates( LocationManager.NETWORK_PROVIDER, MIN_TIME_BW_UPDATES, MIN_DISTANCE_CHANGE_FOR_UPDATES, this); Log.d("Network", "Network"); if (locationManager != null) { location = locationManager .getLastKnownLocation(LocationManager.NETWORK_PROVIDER); if...

AlertDialog If/Else to check against system services?

java,android,gps,alertdialog,application-settings
Quick question, I've got a method where an Alert Dialog is built and want to call it when it detects that WIFI or GPS on the android device is not enabled. So essentially: If: The device does not have wifi or GPS //Don't know how this code is { Built...

iOS : How to get gps coordinate debugging with simulator

ios,objective-c,gps
I try to get coordinate of my location. I stackoverflowed so what I coded is below: locationManager = [[CLLocationManager alloc] init]; locationManager.delegate=self; locationManager.distanceFilter = kCLDistanceFilterNone; locationManager.desiredAccuracy = kCLLocationAccuracyKilometer; [locationManager startUpdatingLocation]; CLLocation *location = [locationManager location]; CLLocationCoordinate2D coordinate = [location coordinate]; self.longitude=coordinate.longitude; self.latitude=coordinate.latitude; NSLog(@"dLongitude :...

How to switch from Gps to network provider?

android,gps
Need some help. I am making an app where i get location updates from either gps or network provider. If gps is not enabled then i gave the button to enable the gps. Now what i need to do is to take updates from gps, if the gps can't get...

why is the onLocationChanged function not working for me?

android,gps
I've been coding an app that uses the gps sensor to get your location and centers the map around you, I have been using the funcion : final LocationListener locationListenerFunc = new LocationListener() but it's not working for me, I have been going for hours but i still don't see...

GPS App compile errors

c++,linux,gps,raspberry-pi,gpsd
I am working on a GPS application on the Raspberry pi. I have just installed GPSD by running sudo apt-get install gpsd gpsd-clients. I do get data from my GPS module when I run sudo gpsd /dev/ttyAMA0 -F /var/run/gpsd.sock. My issue resides when I try to make my own GPS...

Android EXIF GPS coordinates not extracting correctly (via share intent)

android,image,gps
I have an application where I am trying to save an image with gps coordinates in it (EXIF). When I share the image via gallery to my application the image is sent as expected but the gps coordinates are returning null, as if they don't exist. Save image in my...

Refreshing gps data in Tkinter

python,tkinter,gps,gpsd
I have the following script which outputs altitude data from the gpsd module to the console and keeps it up to date. I would like to display the same data within a tkinter interface but whatever i've tried I can't seem to get it to refresh the data like the...

“Declaring a public let for an internal class” - Swift

swift,gps
I'm trying to make a app that uses GPS and below is my class for the GPS Controller. My tuple for latitude and longitude gives a compiler warning if I try to declare it as public. class CoreLocationController : NSObject, CLLocationManagerDelegate { var locationManager:CLLocationManager = CLLocationManager() public let ltuple: (latitude:Double,...

ACCESS_COARSE_LOCATION permission gives a cell tower precision on Android

android,permissions,gps,android-location,fusedlocationproviderapi
I am making some tests with the requestLocationUpdates() function from the FusedLocationApi. I am using the PRIORITY_BALANCED_POWER_ACCURACY. A city block precision is fine for me. When I request the ACCESS_FINE_LOCATION permission, I get around a 100m precision which is great with GPS off. As I do not need a GPS...

SensorEvent.timestamp and Location.getElapsedRealtimeNanos() Timestamp Delay Offset

java,android,gps,time-series,kalman-filter
I am currently getting timestamps from accelerometers, magnetometers, and gyroscopes and performing sensor fusion with GPS Location on an android device. I am getting the sensor timestamp using SensorEvent.timestamp and Location.getElapsedRealtimeNanos(). My code is as follows: Sensor Timestamp public void onSensorChanged( SensorEvent event ) { if( event.sensor.getType() == Sensor.TYPE_ACCELEROMETER )...

How I can calculate realtime traveling distance in android?

android,gps
How I can calculate realtime traveling distance??How I can Calculate real time traveling distance by a vehicle in android programmatically. Example a car/bike travel from point A->B->C->D->C->B, than I want to calculate the total traveling distance by the car/bike on the point B by using device(Android phone) GPS.Is there any...

Updating previous latitude and longitude

android,gps
Thank you so much for your help, knowledge and time, it is priceless for me. I am working on a GPS location application. The basic idea is the behaviour of a compass. If a walk towards the latitude, so I am going to receive a notification about my direction is...

Android how to delete an object

java,android,gps,garbage-collection,finalize
So im making an app where an arrow points towards a certain geo location point. In my program every time the phone moves a new instance of the GPSTracker class is called. The problem arises when after 10seconds of running the app freezes. I need to somehow discard gpsTracker right...

How to put GPS status in text box

android,gps
Basically, in case GPS is turned on under text box to say 'Enabled' and if it is turned of, put text in text box that says 'Disabled'.

GPSTracker Class not working

android,gps
I have tried to use a GPSTracker class that I found online in my application, and I had it working earlier, but it seems to now inexplicably not work. public class GPSTracker extends Service implements LocationListener { private static final String TAG = "GPSTracker"; private final Context mContext; // flag...

using Gps Getting Latitude and Longitude

android,gps
please anyone give me the code for, { getting latitude and longitude using gps for every 5 minutes, and send that latitude and longitude to Web url using Json Parsing if you close that app also we able to get latitude and longitude }...

Identify different fix intervals in GPS data with R

r,gps
I would like to identify and label when my GPS collars switch fix rate schedules using a datetime column. My collars alternate on a 5 minute schedule for 2 days, then hourly for 6 days, for a few months then they turn off. Ideally I would just use the original...

Questions about Citymaps on Android Studio

android,android-studio,gps,citymaps
At today's development, I have some new questions and as follows: 1、When I open GPS service,call the method mapView.startUpdatingLocation(),it is locating the current position very well,but if I close the GPS and does not set the default position,is it can locating automatic by network and show an blue arrow in...

Distance between two gps coodinates - javascript

javascript,gps,geolocation
I am searching to know the concept behind this since last month and till now i got these resources How do I calculate distance between two latitude-longitude points? geolib.js Function to calculate distance between two coordinates shows wrong Calculate distance, bearing and more between Latitude/Longitude points But i still can't...

Is it possible to fallback to AuthorizedWhenInUse when a user doesn't allow AuthorizedAlways in iOS?

ios,permissions,gps,core-location
My app uses user location in the background, but sometimes, users don't allow the app to always collect GPS data. The app can handle foreground only locations, and I'd like to set that as a fallback. Is there a graceful way, once an iOS user has declined my AuthorizedAlways request,...

Sort Collection of GPS Locations by distance to current GPS Location

java,arraylist,collections,gps
Given a collection of Location objects which have a longitude and latitude, how can I sort this list based on each Locations distance to a current Location object? I have a method which can calculate the distance in meters between two Location objects. Is Collections.Sort() appropriate here?...

Android Location API not properly tracking the user

android,gps,location,location-provider,fusedlocationproviderapi
I have a background service which should track the user movement with his car, and send the data to my server. I have two variables for sending the location, either 60 seconds have passed or the user has moved 100 meters. On my service here is how I start listening...