Automatic export location tracks of walking\running activiies in garmin - geolocation

I would like to do some automated export location history - map (or picture of the map) of my walking and running activities from my Garmin watch.
I am not an enterprise developer, so I am not able to use Garmin API.
I am using HealthSync app to sync activities Garmin->GoogleFit.
I am able to see location trak inthe google fit.
I was trying to retrieve it via GoogleFit API, but looks like google does not allow we to do it :-( DataSource for the location in google fit Rest API
I was trying to perform sync Garmin->Fitbit (Fitbit has wonderful API)
But looks like HealthSync is not transferring location tracks from Garmin to Fitbit.
And I am near to giving up :(.
What could be an option for me to automate exporting\saving location tracks of my runs and walking?
I do like my Garmin watch and don't see good alternatives for them. But also I would like to own my data :-)

Google made some policy revisions especially with GDPR regulations tightening their nooses.
As stated in officially published docs, https://developers.google.com/fit/datatypes/location#location_sample, location data is exclusive to the application that originally wrote it. Thus, it becomes obscured to any other 3P app that also is writing and reading location data of its own.
You can also reach out to their mailing list, fit-developer-support#google.com, should you need any clarifications with their APIs, especially now that they're introducing Health Connect to replace the Android APIs, https://developer.android.com/guide/health-and-fitness/health-connect

Related

Apple Health Kit Data via Rest API

Are there any third party which provide data of apple health kit data using there end points like google fit provide us via rest api's https://developers.google.com/fit/rest/v1/get-started
No, there are not.
And there most likely won't be in the future either. This is an easy conclusion to make given how Health Kit integration works today and how Apple has privacy protocols around Health Data -
Integrating Health Kit in your app allows you to see Health Data only after the user has granted relevant permissions (of course). But the user has to explicitly grant permission for each datatype (HKObjectType) eg sleepAnalysis, blood glucose etc.
Your app with Health Kit integration can only request Health Data while the app is active in the background and the phone is not locked or running in the foreground. So lets say you have background tasks (BGAppRefreshTask or BGProcessingTask) to request Health Data - this won't work if your phone is locked.
Given these behaviours and other restrictions Apple places around the use of HealthKit, I don't see how there is ever (or at least in the near future) going to be a an api to relay this data.
If you absolutely had to it, your best bet would be to write an application on the device that integrates with HealthKit and exports HealthData to your servers. Then explicitly prompt the user to export HealthData from the app every time, and expose an api from your server. Not happening.

Which method is OLA & Uber using to get car location while in driving?

I have used the Map control in my iOS application. I have to get the user's car location while the user in driving (Run time update like Ola and Uber Apps).
1). Which method are they using to get the user location while moving (API call, Web socket or any other else)?
2). If are they using API call, How many once (Time interval) will they call API to update the UI?
Share you valuable suggestions. Thank you in advance.
You can do with firebase database . Firebase have realtime database . So when some data is update in firebase in particular node in firebase database , so get realtime data syncing in your app .. just you have to make proper database structure and observing proper node from database is require.
Both Ola and Uber use enterprise Google Maps API, in fact most of the
Geo-location based apps use Google maps API.
Google maps API are available at Google's developer forum. You can
make use of that API for your app and you can get your current cards
which can then be used to show on maps.
Here's the link to add this API in your site/app:
https://developers.google.com/maps/documentation/
Also, you can add multiple features like navigation, street view and
satellite imagery with the help of this:
https://developers.google.com/maps/documentation/embed/
This is used in the most famous game:- Pokemon go.
It's free to a certain limit if you want to try for your own Apps,
after the free limit you need to pay for it.

Uber Live Driver Route GPS Update

I am getting into ioS development. Does anyone know how apps like Uber achieve live gps updates of driver's en route? You can see exactly where the driver is on the map and it's a live feed.
Can this be achieved through use of Google Maps API?
Thanks.
Basically, all they need is that the Driver has a device which has GPS and internet connection. Then the device locates itself (periodically) and sends the location to the central server, in which the location along side information identifying the car is stored.
And then the map view simply fetches the data from the database and shows the cars in the Map. And again it simply refreshes the data with timer.
So the Google Maps API, alongside with any other Maps offering can indeed be used for showing the map and the cars in it. But for the positioning parts, as well as for the server side implementations you likely would need to search for other offerings as well.

Is there an API for Frequent Location History on iOS?

I noticed "Frequent Locations" while rummaging through my settings on my iOS device. I'm trying to build an app that basically combs through your location history, either by social network or by your device, and determines if you were at a particular event. Does apple provide an API to access your recent frequent locations on your device? I read through this documentation but didn't see anything about location history.
From reading the Apple API reference guide it looks like 'locationmanager(_:didVisit:)' would provide the information you're looking for. It would provide data on locations that the user was in for a extended period of time.
What Apple's definition of extended is, I'm not sure. But this should get anyone searching for the frequent locations data a bit closer than what was posted in response to this question.
In the 'Getting the Visited Locations' subsection of this link.
https://developer.apple.com/reference/corelocation/cllocationmanager

What do the Google Maps Terms of Service mean in practice for an iOS app developer?

I want to use the MapViewController in an iOS app (to allow the user to find the adress of where he is currently at) and came across the "Google Maps Terms of Service for iPhone SDK", but I am a bit lost what some of this means in practice, i.e. what do I need to be aware of and what do I need to do when using a MapViewController. Specifically:
9.2 Reporting. You must implement those reporting mechanisms that Google
has set forth and may update from time
to time in these Terms and in the Maps
API Documentation. For example, as
specified in the Maps API
Documentation, you agree to provide
reports to Google if your Maps API
Implementation enables a device to
detect its own location through use of
a sensor (including but not limited to
GPS, cell triangulation, WiFi or
similar functionality) to display the
location of the device on a map or to
calculate a route.
Obviously I am enabling the device to detect its own location by showing the map with the current location marker. I got lost trying to find some details on what that "reporting" means and if and what kind of it I am supposed implement.
Thanks,
Timo
Taken from Google Maps API Terms of Service:
How does the Google Maps APIs key system work?
Google Maps API keys are only required when using the JavaScript Maps API v2 and the Maps API for Flash [emphasis added].
In order to obtain a Google Maps API key, you must sign in to your Google Account and agree to our Terms of Service. There is no limit to the number of keys you may obtain under a single account.
When you use MKMapView as part of the iPhone SDK, you are using it under Apple's license with Google for the map service. Therefore you do not need to separately agree to the Google Maps API Terms of Service or implement any functionality to meet this requirement.

Resources