New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multilingual Street names in Instructions depending on the 'Locale' of a query #259
Comments
|
Thanks! Here the context of the discussion on the mailing list |
|
For now we can have multiple graphs in various languages. |
|
Peter how do you think we should handle this? In Mapsforge we have the parameter Should we add a similar parameter here too? |
|
I mean for start, during graph creation to let user select a language to use. At a later stage we could think about multilingual graphs. |
Yes, this should be very easy to do
Should be also doable when we introduce a new |
|
The preferred language is now changable - thanks @devemux86 - will keep it still open until multiple street names can be stored&retrieved. |
|
@karussell |
|
Not sure, what you mean. When we support multiple languages for import and for retrieval we will probably never be able to support an arbitrary number of languages. |
|
Right now we try to retrieve the preferred language exactly as proposed by the user. |
|
oh, I didn't thought about these - thanks for pointing this out! (how frequent are these tags?) And yes, that would be a useful&simple addition before the real multi language support. |
|
I propose to follow our Mapsforge implementation of multilingual Maps and POI.
It's a solution we implemented in Mapsforge and well tested with OSM data. |
|
This sounds good to me. How would a new getName method look like? Should we introduce getName(String) or getName(Locale)? Or even allow for a more efficient storage and use getName(int/short) where we provide a localeToIndex method somewhere converting the Locale into a short or int value upfront. Of course at the moment no efficient storage formats should be implemented but just thinking about a okayish API for this. Also I would want that users can merge e.g. de_DE and de_CH into one or keep those separated when explicitly specified. |
The parsing implementation can be seen here (we use String).
During the graph creation? That needs some thinking for the API, probably can be added afterwards. |
Ok. Still storing should be done in a consistent way so that one just needs to convert the input once. E.g. store all keys with toLowerCase and Another possibility I can think of is a special GHLocaleClass which could hold a short value used for the comparison instead. Making storage slightly more compact and retrieval slightly faster / cleaner.
Yes. Merging would happen on graph creation ... we need to ensure (e.g. via simple unit tests) that these language specific codes or languages with only three letter iso codes will work too |
When asking for routing in Greek language, is it possible to use the Greek name of the roads within the OSM? In general, to allow multiple names depending on the 'locale'
For example in OSM we have:
The text was updated successfully, but these errors were encountered: