Python Google Maps Driving Time

前端 未结 4 1958
感动是毒
感动是毒 2021-01-30 05:33

I need to get driving time between two sets of coordinates using Python. The only wrappers for the Google Maps API I have been able to find either use Google Maps API V2 (deprec

4条回答
  •  野性不改
    2021-01-30 06:26

    Check out this link: https://developers.google.com/maps/documentation/distancematrix/#unit_systems

    Read the part about "Optional parameters." essentially, you add the parameter into your request in your url. So if you wanted biking, it would be "mode=bicycling." Check out the example towards the bottom of the link and play around with some parameters. Good Luck!

提交回复
热议问题