Project-OSRM / osrm-text-instructions

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

C++ port #257

Open danpaz opened 6 years ago

danpaz commented 6 years ago

The logic in this module is written in javascript, but the translation strings and transifex integration are valuable features that are not necessarily tied to javascript. It would be great if we could use osrm-text-instructions in a native environment for example. A C++ port of this project would make this possible. A similar port of osrm-ti exists for iOS/macOS: https://github.com/Project-OSRM/osrm-text-instructions.swift/.

Approach

yuryleb commented 6 years ago

I hope this will be started as separate repository and this one will continue to follow KISS? :wink:

Actually I don't know who may need such "universal" C++ port (then why not C?) at all. Each product has its own resources format, why don't simple take original (and well-tested) JSONs and convert them as Swift port does? What's the problem to translate index.js code to your favorite language, it's simple and well- (ok, almost :wink:) -commented (although this seems to be the problem for PHP developers :worried:)?

danpaz commented 6 years ago

@yuryleb I think this will probably become a separate repo similar to the swift one, but for now I'm working on a branch in this project to get started.