How can I get a URL to open the Google Maps app from a custom route accessed via python API?
I am creating a Flask webapp that involves the use of the google maps API. I currently have JS query the flask backend for navigation results, using the googlemaps python library reference to compute a route calculation between two points. I have set alternatives=True
to get multiple routes, and am now wondering how to use these route objects to create a custom google maps URL that will open The google maps app with the selected route.
All the solutions I have seen use maps URLs here that look something like: https://www.google.com/maps/dir/?api=1¶meters
for a directions request but this seems to send a new directions calculation request to google and navigates to the maps app with that new directions request, which is not what I want. I want it to open google maps in navigation mode for the route I have already requested from google and clicked on in my app. I know navigation links can be achieved through dir_action=navigate
but I want the link to work with the route I have clicked on in my app.
How can I get a URL to open the Google Maps app from a custom route accessed via python API?
I am creating a Flask webapp that involves the use of the google maps API. I currently have JS query the flask backend for navigation results, using the googlemaps python library reference to compute a route calculation between two points. I have set alternatives=True
to get multiple routes, and am now wondering how to use these route objects to create a custom google maps URL that will open The google maps app with the selected route.
All the solutions I have seen use maps URLs here that look something like: https://www.google.com/maps/dir/?api=1¶meters
for a directions request but this seems to send a new directions calculation request to google and navigates to the maps app with that new directions request, which is not what I want. I want it to open google maps in navigation mode for the route I have already requested from google and clicked on in my app. I know navigation links can be achieved through dir_action=navigate
but I want the link to work with the route I have clicked on in my app.
How can I get a URL to open the Google Maps app from a custom route accessed via python API?
I am creating a Flask webapp that involves the use of the google maps API. I currently have JS query the flask backend for navigation results, using the googlemaps python library reference to compute a route calculation between two points. I have set alternatives=True
to get multiple routes, and am now wondering how to use these route objects to create a custom google maps URL that will open The google maps app with the selected route.
All the solutions I have seen use maps URLs here that look something like: https://www.google.com/maps/dir/?api=1¶meters
for a directions request but this seems to send a new directions calculation request to google and navigates to the maps app with that new directions request, which is not what I want. I want it to open google maps in navigation mode for the route I have already requested from google and clicked on in my app. I know navigation links can be achieved through dir_action=navigate
but I want the link to work with the route I have clicked on in my app.
How can I get a URL to open the Google Maps app from a custom route accessed via python API?
I am creating a Flask webapp that involves the use of the google maps API. I currently have JS query the flask backend for navigation results, using the googlemaps python library reference to compute a route calculation between two points. I have set alternatives=True
to get multiple routes, and am now wondering how to use these route objects to create a custom google maps URL that will open The google maps app with the selected route.
All the solutions I have seen use maps URLs here that look something like: https://www.google.com/maps/dir/?api=1¶meters
for a directions request but this seems to send a new directions calculation request to google and navigates to the maps app with that new directions request, which is not what I want. I want it to open google maps in navigation mode for the route I have already requested from google and clicked on in my app. I know navigation links can be achieved through dir_action=navigate
but I want the link to work with the route I have clicked on in my app.
How can I get a URL to open the Google Maps app from a custom route accessed via python API?
I am creating a Flask webapp that involves the use of the google maps API. I currently have JS query the flask backend for navigation results, using the googlemaps python library reference to compute a route calculation between two points. I have set alternatives=True
to get multiple routes, and am now wondering how to use these route objects to create a custom google maps URL that will open The google maps app with the selected route.
All the solutions I have seen use maps URLs here that look something like: https://www.google.com/maps/dir/?api=1¶meters
for a directions request but this seems to send a new directions calculation request to google and navigates to the maps app with that new directions request, which is not what I want. I want it to open google maps in navigation mode for the route I have already requested from google and clicked on in my app. I know navigation links can be achieved through dir_action=navigate
but I want the link to work with the route I have clicked on in my app.
How can I get a URL to open the Google Maps app from a custom route accessed via python API?
I am creating a Flask webapp that involves the use of the google maps API. I currently have JS query the flask backend for navigation results, using the googlemaps python library reference to compute a route calculation between two points. I have set alternatives=True
to get multiple routes, and am now wondering how to use these route objects to create a custom google maps URL that will open The google maps app with the selected route.
All the solutions I have seen use maps URLs here that look something like: https://www.google.com/maps/dir/?api=1¶meters
for a directions request but this seems to send a new directions calculation request to google and navigates to the maps app with that new directions request, which is not what I want. I want it to open google maps in navigation mode for the route I have already requested from google and clicked on in my app. I know navigation links can be achieved through dir_action=navigate
but I want the link to work with the route I have clicked on in my app.
How can I get a URL to open the Google Maps app from a custom route accessed via python API?
I am creating a Flask webapp that involves the use of the google maps API. I currently have JS query the flask backend for navigation results, using the googlemaps python library reference to compute a route calculation between two points. I have set alternatives=True
to get multiple routes, and am now wondering how to use these route objects to create a custom google maps URL that will open The google maps app with the selected route.
All the solutions I have seen use maps URLs here that look something like: https://www.google.com/maps/dir/?api=1¶meters
for a directions request but this seems to send a new directions calculation request to google and navigates to the maps app with that new directions request, which is not what I want. I want it to open google maps in navigation mode for the route I have already requested from google and clicked on in my app. I know navigation links can be achieved through dir_action=navigate
but I want the link to work with the route I have clicked on in my app.
How can I get a URL to open the Google Maps app from a custom route accessed via python API?
I am creating a Flask webapp that involves the use of the google maps API. I currently have JS query the flask backend for navigation results, using the googlemaps python library reference to compute a route calculation between two points. I have set alternatives=True
to get multiple routes, and am now wondering how to use these route objects to create a custom google maps URL that will open The google maps app with the selected route.
All the solutions I have seen use maps URLs here that look something like: https://www.google.com/maps/dir/?api=1¶meters
for a directions request but this seems to send a new directions calculation request to google and navigates to the maps app with that new directions request, which is not what I want. I want it to open google maps in navigation mode for the route I have already requested from google and clicked on in my app. I know navigation links can be achieved through dir_action=navigate
but I want the link to work with the route I have clicked on in my app.