osmlab / name-suggestion-index

Canonical common brand names, operators, transit and flags for OpenStreetMap.
https://nsi.guide
BSD 3-Clause "New" or "Revised" License
712 stars 875 forks source link

Python implementation? #10155

Open brawer opened 3 days ago

brawer commented 3 days ago

Do you know if there’s a Python library that implements the NSI matching logic? Given a GeoJSON object with OSM tags in properties, that library would return the NSI-suggested changes. Does this already exist?

The Osmose codebase implements parts of NSI but afaik there’s more to the matching logic.

LaoshuBaby commented 20 hours ago

I want to wrote a such package years ago but abandoned……I guess I'll pick up this later^

At that time I just want to select all brand+operator in one selected country such as Japan or China


Edit: It's actually because I'm not familiar with js. I even thought about rewriting the part generated by dist in python, but that's not necessary.