addTo(map); Custom Style Example js let customDirectionsControl = L.mapquest.directionsControl({ routeSummary: { enabled: true, compactResults: true, }, narrativeControl: { enabled: true, compactResults: true, }, directionsLayer: { startMarker: { icon: 'circle', iconOptions: { size:...
This does not work for multi-point routes, only for routes between a single origin and a destination. A returned result will contain the main route, along with additional potential routes that could be used. note Additional routes will only be returned if the maxRoutes parameter is set to 2...
locations A set of at least 2 locations specifying the route origin and destination. Refer to the Locations documentation on how to properly form locations in all formats. Yes Body Parameter Options ParameterDescriptionRequired unitString Specifies the type of units to use when calculating distan...