Giter VIP home page Giter VIP logo

Comments (5)

bbkr avatar bbkr commented on July 30, 2024 1

It is very easy to tie geoname_id to data provided by GeoNames.org as I described here: https://github.com/bbkr/GeoIP2#translations

I think this task can be closed - there is no right way to do it in GeoIP database because there may be various interpretations of what "native" language is.

from maxmind-db.

oschwald avatar oschwald commented on July 30, 2024

Thanks for the idea! We have discussed something like this previously but have not pursued it as we have always run into a few issues. In many countries, more than one language is spoken and the local name may differ in those different languages. We did consider using the official government names, but it is common for those names to be long and awkward and not what people actually use, e.g., "Commonwealth of Massachusetts" for "Massachusetts" in the United States. Also, we use GeoNames for our name data and, although they do have some flags around these things, we have not found that data to be consistent or very high quality.

from maxmind-db.

bbkr avatar bbkr commented on July 30, 2024

I agree, native names in multiple native languages will be a challenge to present in consistent manner. Maybe something like:

{
    'city' => {
        'names' => {
            'en' => 'Gdansk',
            'de' => 'Danzig',    # this is present if language is mentioned in metadata as translation
            'pl' => 'Gdańsk'    # this is additionally present if language is mentioned in result as official
        }
    },
    'official_languages' => [ 'pl' ] # would be a nice addition on its own
}

Or maybe just:

{
    'names' => { ...},
    'official_names' => {
        'pl' => 'Województwo pomorskie'
    }
}

So far I resolved this issue by using http://www.maxmind.com/GeoIPLocationCSV-localized.zip by geoname_id and correlated with list of official languages for each country. Yes, "official" names are weird, but querying it is far more easier than guessing english translation.

from maxmind-db.

bbkr avatar bbkr commented on July 30, 2024

Hi.

I've found that http://www.maxmind.com/GeoIPLocationCSV-localized.zip is missing. What is the new location of this file? Do you still support it?

from maxmind-db.

oschwald avatar oschwald commented on July 30, 2024

That file is no longer supported. It had not been updated in many years and was for use with the Legacy databases before GeoIP2 was released.

from maxmind-db.

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.