Leaflet routing mashine mapbox geocoder error

22 Views Asked by At

i have 401 error, its geocoder, with other geocoders its work.

var control = L.Routing.control({
   position: 'topleft',
   router: new L.Routing.mapbox('Apikey', {
       profile: 'mapbox/driving',
       alternatives: true
   }),
   routeWhileDragging: true,
   geocoder: L.Control.Geocoder.mapbox({
      accesstoken:'Apikey'}),
   formatter: new L.Routing.Formatter({
       units: 'metric',
       language: 'ru'
   })
}).addTo(map);

what i can do with that?

0

There are 0 best solutions below