Y
Y
Yuri Voronin2019-12-21 21:24:21
Yandex maps
Yuri Voronin, 2019-12-21 21:24:21

How to specify the bus number when building a route on the Ya.Map API?

Hello.
Is it possible to manually specify the bus number when building a route through the API on Ya.Map? Maybe there is a parameter or some kind of option. I didn't find it in the documentation.
I build the route like this:

multiRoute = new ymaps.multiRouter.MultiRoute({
                referencePoints: [
                    [55.611024, 37.287100],
                    [55.621723, 37.421927],
                ],
                params: {
                    routingMode: 'masstransit'
                }
            }, {
                wayPointVisible:false,
                routeActiveMarkerVisible: false,
                boundsAutoApply: true,
            });
myMap.geoObjects.add(multiRoute);

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question