[Google Maps] Avoid Tolls in Route Map

Forge Component
(43)
Published on 2019-08-06 by Labs
43 votes
Published on 2019-08-06 by Labs

Hello All,

i am developing a Route Map from Google Maps and i want to avoid Tolls. I set the additional value to True


Unfortunatelly the displayed map does not avoid Tolls. Also, i try to set to False. The same results. Seems that this option is not calculated to map results.

Any suggestion or advise?

Hey George! Are you using a Forge component?

One consideration is installing an external API and changing the code natively

Hi, 

you should look google map developer guide where they told about waypoint optimization and restrictions.

Link:

https://developers.google.com/maps/documentation/directions/intro#Restrictions



Regard.

Rahul

Rahul Kumar wrote:

Hi, 

you should look google map developer guide where they told about waypoint optimization and restrictions.

Link:

https://developers.google.com/maps/documentation/directions/intro#Restrictions



Regard.

Rahul

Thanks for your reply. 

Can you advise me how to list the optimize way points in a list?


Hi , 

For waypoint optimization , you need to pass   -  true  in below parameters ,

I am glad,    -> "{avoid:tolls}" this will work for avoid tolls in your previous issue. 


Thanks and Regards,

Rahul

Thank for your reply.

My reuest is not how to activate the google way points optiomization. My request is how to display the optimized way points to a table :)

Hi,

have you check this component this using some javascript to calculate route , open its espace (GoogleRoutes),


this might gave some idea to get your optimized route value. 


Thanks

During opening the component is corrupted.

Any advise?

Hi, 

You need to pass your   environment name (e.g. xxxxxxxx.outsystemscloud.com ) in host name. and your environment userid and password then 1-click publish 


Let me share .oml with you