-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return units #36
Comments
It should, indeed. However the package just scraps the results from google maps API, which is returning something like <DistanceMatrixResponse>
<status>OK</status>
<origin_address>... </origin_address>
<destination_address> ...</destination_address>
<row>
<element>
<status>OK</status>
<duration>
<value>812</value>
<text>14 mins</text>
</duration>
<distance>
<value>4209</value>
<text>4.2 km</text>
</distance>
</element>
</row>
</DistanceMatrixResponse>
So the distance is in meters and duration is in seconds. |
Thanks for your comments. |
The function should actually return units and not just the number. I'll keep the issue open for now. |
This lovely function returns three elements: Time, Distance and Status.
What are the units for Time and Distance? This should be specified at least in the documentation
and perhaps in the returned object.
The text was updated successfully, but these errors were encountered: