Agm-Direction icon indicating copy to clipboard operation
Agm-Direction copied to clipboard

How i can add navigation

Open monikagupta78 opened this issue 5 years ago • 4 comments

I used this library to show route, next i am looking for navigation. can you pls guide how we can add navigation for that route?

monikagupta78 avatar Jul 28 '18 11:07 monikagupta78

Hi ! @monikagupta78

I'm not sure I understand what you mean. You want to display a directions panel?🤔

Panel

Here is an example of panel:

<agm-direction ... [panel]="myPanel"></agm-direction>
<div #myPanel></div>

Check out more examples:

  • Agm-Direction-Docs: Direction (Update Panel With New Query)

Navigation Functions (Heading)

Or this feature? Navigation Functions (Heading)

Hope to help you~

explooosion avatar Jul 31 '18 09:07 explooosion

No, I am looking to add Navigation, like we have in android phone in google maps, for user to navigation from point A to B with geo tracking on.

monikagupta78 avatar Jul 31 '18 10:07 monikagupta78

Sorry, I can't understand clearly. Could you provide some use case or images about this issue?

explooosion avatar Aug 02 '18 05:08 explooosion

My usecase is to draw a route with multiple stops and provide real time navigation like Ola/Uber. I am trying to understand if I can add real time navigation after drawing the route using this direction library? one option could be to generate a URL, that can take the user to google Maps navigation App.

Need help here to construct a URL with multiple waypoints using this module? like it is available in Google direction API using dir_action=navigate attribute?

https://developers.google.com/maps/documentation/urls/guide#directions-action

example URL - https://www.google.com/maps/dir/?api=1&origin=Paris,France&destination=Cherbourg,France&travelmode=driving&waypoints=Versailles,France%7CChartres,France%7CLe+Mans,France%7CCaen,France

Any inputs pls?

monikagupta78 avatar Aug 02 '18 06:08 monikagupta78