简体   繁体   中英

How can I get travel time data between two locations using Google Maps in my C# Windows application?

I can manually login to Google Maps, specify two addresses as either actual addresses or lat-long coordinates, and ask for directions. After I select Driving, Mass transit, or bicycle directions, I get the list of instructions and the estimated travel time for the default route.

I would like my C# application to do this. The start and end points would be given as strings, and I would also specify what kind of directions I want (driving, mass transit, etc). The output should be an estimate of how much time it would take (according to Google).

I am trying to do this on a desktop C#/.NET app under Windows, not on Android.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM