I once did country-to-language mapping for that. https://github.com/wgnet/globalmap/blob/master/data/country_languages.csv
That repo also contains other stuff we implemented for displaying multilingual map. вт, 11 апр. 2017 г. в 4:10, Yuri Astrakhan <yuriastrak...@gmail.com>: > I simply need to determine the most likely language of the "name" tag (not > the "name:xx" tag). Does not have to be 100% correct - even 80% is great. > > On Mon, Apr 10, 2017 at 8:59 PM john whelan <jwhelan0...@gmail.com> wrote: > > Orleans is part of Ottawa and all street names signs are bilingual or in > the process of being replaced by bilingual ones. Certainly the street I > live on in Orleans has a bilingual street name sign. The English French > question is very much political in Canada and I suspect much of the world. > > Montreal has a quite large English speaking community which is rare in > Quebec. > > You could try looking at the street names to see if they are in English > and have a second language name as well. name:fr for example. > > Cheerio John > > On 10 April 2017 at 20:47, James <james2...@gmail.com> wrote: > > Well it might not be as simple as you say...take for instance Ottawa. It's > in Ontario and pretty english. There is a suburb called Orléans in which is > pretty much "the french part of town" as most street signs will be in > french, but rest of Ottawa is pretty English(in terms of street signs) > > So generilizing wont help you much... > > On Apr 10, 2017 8:27 PM, "Yuri Astrakhan" <yuriastrak...@gmail.com> wrote: > > Exactly, and that's the map I need -- a set of shapes that define these > region mapping: Quebec+New Brunswick => fr, the rest of USA/Canada => en, > ... > The shapes may overlap because that would make geojson smaller - I will > simply use the first one. > > Having this map will allow me to determine the likely language of the > "name" tag for any location, which in turn make for a better multilingual > map. > > On Mon, Apr 10, 2017 at 8:20 PM James <james2...@gmail.com> wrote: > > Well many countries have multiple official languages, Canada is French and > English, but in practice is mostly Quebec and New brunswick...with small > patches of french throughout the rest > > On Apr 10, 2017 8:12 PM, "Yuri Astrakhan" <yuriastrak...@gmail.com> wrote: > > James, thanks, but I was hoping for the language regions shapefile, e.g. > in the GeoJSON form. The list of official languages will require a lot of > work to convert into the merged shapes, and it still not very good, as many > countries have several official languages, e.g. Switzerland. > > On Mon, Apr 10, 2017 at 7:55 PM James <james2...@gmail.com> wrote: > > Also have you checked: > https://en.wikipedia.org/wiki/List_of_official_languages_by_country_and_territory > > On Apr 10, 2017 7:50 PM, "James" <james2...@gmail.com> wrote: > > More like French for the entirety of the province of Quebec > > On Apr 10, 2017 7:38 PM, "Yuri Astrakhan" <yuriastrak...@gmail.com> wrote: > > Does anyone know of an open source language map - basically a set of > geoshapes with the corresponding language code? Country boundaries are not > needed - e.g. Canada and USA would be English with the exception of French > for Montreal area. > > This is needed to guesstimate what language the "name" tag is in. > > Does not have to be very precise (10-20 MB is more than enough) > > _______________________________________________ > talk mailing list > talk@openstreetmap.org > https://lists.openstreetmap.org/listinfo/talk > > > _______________________________________________ > talk mailing list > talk@openstreetmap.org > https://lists.openstreetmap.org/listinfo/talk > > > _______________________________________________ > talk mailing list > talk@openstreetmap.org > https://lists.openstreetmap.org/listinfo/talk >
_______________________________________________ talk mailing list talk@openstreetmap.org https://lists.openstreetmap.org/listinfo/talk