Closed 284nnuS closed 2 years ago
That is called "reverse lookup" and it's not a feature of posuto. I guess you could iterate over the postal data to create a dictionary that goes the other way.
if you are willing to bet that the author Mr. Paul will not make drastic change on the implementation, you could always read the embedded sqlite3
` import posuto
from posuto import DBPATH as POSUTO_DBPATH
import sqlite3
posuto_df = pd.read_sql_query('SELECT * FROM postal_data', sqlite3.connect( POSUTO_DBPATH ))
`
To be clear, no, I am not going to add this as a feature.
I have Precture, City and Town, so i want to find this postal code.