Comments (8)
Worked, thanks a lot
from lrm-mapzen.
Hi @rossanag . language
options should be passed as a part of directions_options
for L.Routing.mapzen
. Also, language tag for Spanish is es
. Try this one for the router part.
router: L.Routing.mapzen('your-api-key', {
costing: 'bicycle',
directions_options: {
language: 'es'
}
})
from lrm-mapzen.
@hanbyul-here thank you, what absent minded I put the options in the wrong place!. I will try it later and post the result afterwards. The directions options in the documentation confused me (my bad though).
"Currently supported language tags with alias in parentheses: cs-CZ (cs), de-DE (de), en-US (en), en-US-x-pirate (pirate), es-ES (es), fr-FR (fr), it-IT (it)."
from lrm-mapzen.
@rossanag we will make docs more clear about it. Thanks for letting us know what to improve :) Let us know how it goes.
from lrm-mapzen.
added this to PR #64
from lrm-mapzen.
Sorry for my late response. I was with working in another project.
I did the what you suggested @hanbyul-here but the service it is unavailable (503 error), I couldn't see if it works. I will try it tomorrow again.
from lrm-mapzen.
We checked our service status, and it seems that there was no service down in recent several days. I am not very sure what was going on when you tested, but I pushed the example using Spanish on github page.
http://mapzen.github.io/lrm-mapzen/es-example.html
This is javascript file that is used for the example. I hope this helps!
from lrm-mapzen.
Thanks so much @hanbyul-here I will check it out later.
Best!
from lrm-mapzen.
Related Issues (20)
- Example of bicycle routing with different types of bikes
- Sub-Route (transfer) bug HOT 1
- getting ready for leaflet 1.0 HOT 2
- add location hash for gh-pages example
- Error in Routing Calculations HOT 4
- Problem with pedestrian mode HOT 4
- Tune by Turn & Search for the destination HOT 3
- L.Routing.mapzenFormatter and options HOT 1
- No 'Access-Control-Allow-Origin' to valhalla.mapzen.com HOT 7
- How to get a route without using the control? HOT 4
- Consider how to handle routing with multiple break points where some are along the way HOT 2
- Returning turn-by-turn data from a route. HOT 4
- Making the turn by turn example work with requirejs (r.js) HOT 2
- add a buffer to fitSelectedRoutes so pins don't get cut off HOT 1
- change too general class name HOT 1
- not passing some options HOT 1
- make default pins for the start and end of a route different colors
- fitBounds doesn't work with mapzenLine
- Add possibility to use your own Valhalla Server
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lrm-mapzen.