vivet / GoogleApi

C# .NET Core Google Api (Maps, Places, Roads, Search, Translate). Supports all endpoints and requests / responses.
MIT License
551 stars 154 forks source link

Add RouteModifiers to RoutesMatrix #352

Closed RASK18 closed 1 year ago

RASK18 commented 1 year ago

Hi! Could you please add the 'routeModifiers' field to the Routes api? (RoutesMatrixRequest) Thank you very much, I love this repo

https://developers.google.com/maps/documentation/routes/route-modifiers

vivet commented 1 year ago

It's already there https://github.com/vivet/GoogleApi/blob/master/GoogleApi/Entities/Maps/Routes/Matrix/Request/RouteMatrixOrigin.cs#L20

RASK18 commented 1 year ago

Oh! Sorry, as in DistanceMatrix is a global field and in the documentation of this also comes out like that, being at the same level as origins, I did not think to look for it within each origin. Ok, so I'll make a loop or something to add it to all origins, thank you very much :)

vivet commented 1 year ago

It is placed on tve origins, not at root level