Skip to content
This repository has been archived by the owner on Nov 12, 2021. It is now read-only.

Address-electorate lookup #1

Open
vteague opened this issue Sep 2, 2021 · 3 comments
Open

Address-electorate lookup #1

vteague opened this issue Sep 2, 2021 · 3 comments

Comments

@vteague
Copy link
Member

vteague commented Sep 2, 2021

At the moment, it just generates a random electorate for demo purposes. It needs to use the lookup services from the various states, such as this one from Vic:
https://maps.vec.vic.gov.au/

Unfortunately, the AEC's https://electorate.aec.gov.au/ is not as helpful, because some postcodes do not uniquely identify an electorate.

@vteague
Copy link
Member Author

vteague commented Sep 12, 2021

Update: Electoral boundaries are openly available, see:

https://data.gov.au/search?page=1&q=electoral%20boundaries and
https://data.gov.au/search?organisation=Australian%20Electoral%20Commission&q=electoral%20boundaries

  1. Download and store these resources.

  2. Either

  • use the device's location, if available and permitted, or
  • use some third-party service (Google or https://addressfinder.com.au/) to translate their address into lat/long coords.
  1. Calculate which state & federal electorates they're in.
  2. Store locally.

@vteague
Copy link
Member Author

vteague commented Sep 12, 2021

For 2, Possibly https://nationalmap.gov.au/ is the best. (Just have to figure out how to extract the location.)

@vteague
Copy link
Member Author

vteague commented Sep 18, 2021

Alternatively, https://geoscape.com.au/data/g-naf/ gives online translation from address to lat/long coords. Not sure whether this is usable in an app.

The entire dataset is publicly available:
https://data.gov.au/data/dataset/19432f89-dc3a-4ef3-b943-5326ef1dbecc

but too large to include with the app.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant