Project-OSRM / osrm-text-instructions

Text instructions from OSRM route responses
BSD 2-Clause "Simplified" License
87 stars 61 forks source link

How can I use this to set the lang to leaflet-routing-machine? #249

Closed fagworio closed 6 years ago

fagworio commented 6 years ago

How can I set the lang to 'pt-BR' using osrm-text-instructions to leaflet-routing-machine? Someone has a sample to share how to do this.

                waypoints: [
                    L.latLng(57.74, 11.94),
                    L.latLng(57.6792, 11.949)
                ],
                language: 'pt-BR',
            }).addTo(map);

Thanks.

yuryleb commented 6 years ago

This is the question mostly to leaflet-routing-machine, isn't it? :wink:

fagworio commented 6 years ago

Sorry, I will change the topic to leaflet-routing-machine. Thanks.