gps

Find nearby users of an app (iPhone and Android)

情到浓时终转凉″ 提交于 2019-12-03 05:51:16
问题 I am working on an app that has an iPhone version as well as an Android version. My goal is... display a list of nearby users of my app (iPhone app users and Android app users). Lets say a list users which are currently within 1 mile or 2 miles radius and are currently using my app. This list will display on both apps, iPhone app and Android app. App will update the list when user clicks a Refresh button. My question is... What is the best way to accomplish above stated goal? Do I need to

Fused Location Provider not getting location unless GPS is on

拟墨画扇 提交于 2019-12-03 05:39:03
So I have implemented the new Fused Location Provider API to get a location of the user but for some reason, I cannot get any location unless the GPS is on. Not always, will users have their GPS on and I would like to not have to ask them to turn their GPS on every time the load the app. How can I tell the API to give me a location with whatever provider it has available? Here is my code: public class FusedLocationService implements LocationListener, GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener { public interface OnLocationChangedListener { public void

How to get gps location once for 5 mins android?

拟墨画扇 提交于 2019-12-03 05:20:04
问题 hi there can anybody give me a sample code for get location for every five minutes please i have tried and i can get location once by cliking on button, but i need it to be displayed once for five minutes. thank you this is my code : public void checkLocation(View v) { //initialize location manager manager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); //check if GPS is enabled //if not, notify user with a toast if (!manager.isProviderEnabled(LocationManager.GPS_PROVIDER)) {

Calculating distance within a building

為{幸葍}努か 提交于 2019-12-03 05:19:51
问题 I started doing some thinking about creating an Android application that can be used within a corporate building to determine what room you are in. Obviously I'm thinking GPS and network locations wouldn't be accurate enough to accomplish this. (Not to mention the instability of GPS signal inside) I looked briefly into calculating distance via the accelerometer, but it is apparently highly volatile and leaves a large margin for error. I've also considered some sort of triangulation from

Using Google Map Tracks API

☆樱花仙子☆ 提交于 2019-12-03 05:18:10
问题 I have to develop a vehicle tracking system. I have gone through 'Google Map API' and Google Map Tracks API' tutorials. i-e; Google Map API (Web). Google Map Tracks API. My basic scenario will be as follows: We have to track the phone moving in a vehicle. There should be some application on mobile to get its current location and send this info to the web application on some server for monitoring purpose. I am not asking for the code. I just want to know that For phone application: What part

Use the Android Default GPS ON-OFF dialog in My application

时光怂恿深爱的人放手 提交于 2019-12-03 04:55:56
In Our application we want to integrate the android Default GPS Dialog. The same dialog that appears when the GPS is OFF and we press of my location button in google map apps. Have also attached the image of the dialog which I want to integrate. Clicking on "No" option will close the dialog. Clicking on "Yes" option will Activate the GPS of device directly. Dialog the appears for OLA app Below (ANDROID L): Dialog the appears for OLA app Below (ANDROID KIT_KAT): Dialog the appears for Google Map Below (ANDROID L): Our existing implementation is when the GPS is OFF we are redirecting application

DBSCAN code in C# or vb.net , for Cluster Analysis

余生颓废 提交于 2019-12-03 04:42:32
Kindly I need your support to advice a library or a code in vb.net or C#.net that applies the DBSCAN to make Denisty Based Cluster of data . I have a GPS data , and I want to find stay points using the DBSCAN algorithm . But , I do not understand much of the technical part of the algorithm. Not sure that's what you're looking for because the algorithm is very well explain on wikipedia . Do you want an explaination of the algorithm or a translation(or good library) of it in C# ? You can have a look at general clustering algorithm too. Algorithm Let say you chose epsilon and the number of

GPS position when mobile app is in background (with ionicframework)

吃可爱长大的小学妹 提交于 2019-12-03 04:37:14
I need to realize an app that store user journey (path) when he moves from A to B. Now, I know that ionicframework can use GPS, but what happen when my APP go to background ? How can my app continue to store user position ? Is this possible ? Are there plugins (not $600+ please) that I can use ? I just finished writing a new cordova background geolocation plugin for ios and android, its free and simple! try it out: https://github.com/pmwisdom/cordova-background-geolocation-services Ionic Usage : //Wait for cordova / ionic ready to use the plugin ionic.Platform.ready(function(){ //Make sure to

Difference between LocationRequest setInterval (long millis) and LocationRequest setFastestInterval (long millis)

我们两清 提交于 2019-12-03 04:30:40
问题 I am writing my own background location updates for interval of every 5 minutes in android. I would like to know the difference between setInterval and setFastestInterval When I setInterval to 5 mins and setFastestInterval to 2 mins. The location update is called every 2 mins. I would like to know the difference. I couldn't understand what exactly is written in the developer page for this https://developer.android.com/reference/com/google/android/gms/location/LocationRequest.html Also: Is

phonegap: how to check if gps is enabled

泄露秘密 提交于 2019-12-03 04:16:41
I want to show an alert saying that "Please turn on your GPS". How can I get GPS status using phonegap? I have used following code but I don't get any alert message if GPS is turned off. Instead nothing happens. <!DOCTYPE html> <html> <head> <title>Device Properties Example</title> <script type="text/javascript" charset="utf-8" src="cordova.js"></script> <script type="text/javascript" charset="utf-8"> // Wait for device API libraries to load // document.addEventListener("deviceready", onDeviceReady, false); // device APIs are available // function onDeviceReady() { var test= navigator