michaeldorman / mapsapi

'sf'-Compatible Interface to Google Maps APIs
Other
50 stars 14 forks source link

`transit_mode` optional argument for `mp_matrix` #15

Closed cseveren closed 2 years ago

cseveren commented 2 years ago

Thanks for the package. I would like to request that ability to add an optional argument transit_mode to the mp_matrix function that queries the Google Maps Distance Matrix API. It's documentation notes that if mode=transit, one can further pass transit_mode= one of several options. It appears that your function mp_directions already allows this option, so it's likely a simple add.

michaeldorman commented 2 years ago

Thanks for your interest in the package! I added a transit_mode argument in mp_matrix, please let me know if you encounter any issues.

cseveren commented 2 years ago

Great, thanks! -Chris

On Thu, Nov 18, 2021 at 3:01 PM Michael Dorman @.***> wrote:

Thanks for your interest in the package! I added a transit_mode argument in mp_matrix, please let me know if you encounter any issues.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/michaeldorman/mapsapi/issues/15#issuecomment-973267361, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHLZT6EAV2E2VV5WQTCGKXDUMVSTBANCNFSM5IHVWB5A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.