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

Postal code to GRC/MP checker #12

Open
limdingwen opened this issue Aug 1, 2024 · 2 comments
Open

Postal code to GRC/MP checker #12

limdingwen opened this issue Aug 1, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@limdingwen
Copy link
Owner

Following in the footsteps of https://www.theyworkforyou.com/, could help with the personalised annotated debates as well.

@limdingwen limdingwen added the enhancement New feature or request label Aug 1, 2024
@clemneo
Copy link

clemneo commented Aug 2, 2024

The functionality exists here: https://www.parliament.gov.sg/mps/find-mps-in-my-constituency

One way to reproduce this would be to:

  1. Use a postal code -> coordinate API (probably not free) or dataset (like (here)[https://www.kaggle.com/datasets/billptw/singapore-postal-code-to-latlon])

  2. Use the data.gov.sg electoral boundaries data from here to convert coordinate -> constituency

  3. Manually curate a constituency + MPs dataset, and use that?

Is there any way more straightforward than this?

@limdingwen
Copy link
Owner Author

A more straightforward way would be to query https://www.parliament.gov.sg/mps/find-mps-in-my-constituency directly (POST, then set SearchKeyword to the postal code), with caching + validation to lessen the load on the original server, but I'm not sure if that breaks the TOS.

At the end of the day this feature probably isn't very important since as you mentioned the functionality already exists, but I think what we could provide is a more modern UI, as well as changing up the annotated debates a bit, like a "This debate mentions your MP!" sort of thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants