An elegant way to find shortest and fastest route in Google Maps API v3?

后端 未结 6 849
耶瑟儿~
耶瑟儿~ 2020-12-03 03:46

I am making a taxi fare calculator. One of the business requirements is that, the company wants the shortest and fastest route options. I know Google directionService by def

6条回答
  •  心在旅途
    2020-12-03 04:35

    You get three options with the alternatives=true option set. You can then search through those for both the shortest and fastest of the routes returned.

提交回复
热议问题