URI for Google Maps Intent with waypoints

前端 未结 2 808
闹比i
闹比i 2021-01-07 13:25

I would like to add to my app ability to open Google Maps app with more than 2 points but I can only set start point and end point. How to add waypoints? I\'ve tried uri as

2条回答
  •  暖寄归人
    2021-01-07 14:05

    I think you can use +to:waypoint after the destination address. For example:

    https://www.google.com/maps?saddr=San+Francisco&daddr=GooglePlex+Mountain+View+to:San+Jose

    Or:

    https://www.google.com/maps?saddr=San+Francisco&daddr=GooglePlex+Mountain+View+to:Google+Building+45+to:San+Jose

提交回复
热议问题