Skip to content
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

How to get Postal code from Preture, City and Town ? #16

Closed
284nnuS opened this issue Jun 21, 2022 · 4 comments
Closed

How to get Postal code from Preture, City and Town ? #16

284nnuS opened this issue Jun 21, 2022 · 4 comments

Comments

@284nnuS
Copy link

284nnuS commented Jun 21, 2022

No description provided.

@284nnuS
Copy link
Author

284nnuS commented Jun 21, 2022

I have Precture, City and Town, so i want to find this postal code.

@polm
Copy link
Owner

polm commented Jun 21, 2022

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.

@Bob-Jia-catalina
Copy link

Bob-Jia-catalina commented Jul 5, 2022

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 ))

`

@polm
Copy link
Owner

polm commented Jul 5, 2022

To be clear, no, I am not going to add this as a feature.

@polm polm closed this as completed Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants