Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

osrm-text-instructions

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

osrm-text-instructions

OSRM Text Instructions

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16K
decreased by-0.96%
Maintainers
1
Weekly downloads
 
Created
Source

osrm-text-instructions.js


WIP: This project is under heavy development and should not be integrated yet.

osrm-text-instructions.js is a library to transform OSRM steps into text instructions.

Usage

var osrmTextInstructions = require('osrm-text-instructions')('v5');

// make your request against the API

response.legs.forEach(function(leg) {
  leg.steps.forEach(function(step) {
    instruction = osrmTextInstructions.compile(step)
  });
});

Design goals

  • Cross platform Use a translation table in JSON and short logic to allow easy implementations in other languages
  • Heavily tests We have a data-driven test suite with fixtures which can be used cross-platform
  • Customization Users should be able to easily fork or monkey patch the results to adjust to their own likings
  • Translation Allow for translations via Transifex

FAQs

Package last updated on 21 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc