What is the unit of distance parameter in Google Takeout Location history JSON files? - google-location-services

Here's a snippet from Google Takeout Location history file.
I'm supposing that distance provided by Google is in meters. So when I divide it by 1000, I get 5.69 km. So far so good.
But when I browse to this trip from Google timeline, it shows me the distance 6.3 km. Not sure why there is this deviation.
May be its because Google timeline recalculates the distance with different route? Or may be the distance provided by Google is not in meters?
This behavior is observed for all my trips.

Related

Google Maps API and costs. Beginner question

First of all: i am a total beginner, especially with Google Cloud Platform.
I am building a Real Estate website that includes flats that are imported into the CMS via APIs. The flats are uploaded and managed from my client in a dedicated software.
Every flat includes also a map with the flat's position and I need to render it via Google Maps.
The flats (query) are updated every night. There are more than 120 flat that are daily updated.
So far everything fine, Google Maps works properly, but I realized that the costs of the Google Cloud Platform are increasing, drastically.
There is a way I can limit this? I only need to display in front-end (and back-end) the position of the available flats.
Many many thanks in advance!
You can use the Google Maps API for free within your first 90 days of registration. After that, you are billed proportionally to how many requests are sent. You will probably use the Static Maps API if you are just going to load the flat's location. Here is more pricing information.

Can I merge all possible travel modes in a single result from Google maps API?

I tried all travel modes like driving, walking, cycling, etc., But I want all travel modes displayed in a single result on my routing feature. Is this possible?

Distance API for big volume of data

I'm looking into getting the driving distance between a current address (entered by a user) and the locations of some shops in the city / town of the user. The list of shops locations could get really big, up to thousands. Do you have any idea what are the best APIs I could use for this, that would support a volume of data this big?
I was thinking about Google MAPs for Business Distance Matrix, but it seems to support 100000 elements per day and I don't think we fit this limit. MapQuest Enterprise Edition, Route Matrix is also an option, but this says that it might have limitations to prevent service degradation.
I was wondering if anyone used any of these and could give me a feedback or if you have other suggestions? I'm open to paid or free products.
Thanks in advance!

Make achievement with over 10,000 steps using Google Play Game Api

At the Google I/O developer conference Google released a new game service one of the parts of it was achievement support. I would like to make a achievement that is get one million coins but the incremental achievement on supports achievement that have less then 10,000 steps see here. Is there anyway to get around this? How can I make an achievement like get a million coins?
I had the same question. Basically what I'm doing is just keep track of it locally, then unlocking it all at once when they reach the goal. Not ideal but it works.
I suppose that you could also increment it by say 1/10 of the actual value (or in your case 1M/10000) so that when you reach the peak, it is unlocked when the user has earned the one million points or coins etc.
You can do this directly using Google Play Games Service.
However, the number of steps is not displayed to the player in the default UI.
User can only see the percent value on it.
A good approach for you would be to save the total number of coins in an external save (Google Cloud Save?) and report an increment to your GamesClient only when a new percent is reached.
This solution will also minimize the API calls and help you manage your daily quota.

How do I use the Google Maps API GPS sensor?

All I've been able to find is how to specify the sensor parameter:
http://code.google.com/apis/maps/documentation/v3/#SpecifyingSensor
But nowhere does it say how to actually USE it. Isn't the whole point to be able to get the user's current lat/long coordinates through the device GPS, or am I mistaken?
That sensor parameter is only there to indicate to Google that you are using a GPS sensor to determine the user's location.
Unless using the W3C Geolocation API in browsers that support it, it remains your responsibility to get the latitude and longitude from your GPS device to the user's browser.