Giter Site home page Giter Site logo

Comments (8)

rossanag avatar rossanag commented on August 27, 2024 1

Worked, thanks a lot

from lrm-mapzen.

hanbyul-here avatar hanbyul-here commented on August 27, 2024

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.

rossanag avatar rossanag commented on August 27, 2024

@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.

hanbyul-here avatar hanbyul-here commented on August 27, 2024

@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.

kkowalsky avatar kkowalsky commented on August 27, 2024

added this to PR #64

from lrm-mapzen.

rossanag avatar rossanag commented on August 27, 2024

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.

hanbyul-here avatar hanbyul-here commented on August 27, 2024

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.

rossanag avatar rossanag commented on August 27, 2024

Thanks so much @hanbyul-here I will check it out later.
Best!

from lrm-mapzen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.