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

Add search by suburb/postcode #2

Open
troypoulter opened this issue Jan 13, 2024 · 0 comments
Open

Add search by suburb/postcode #2

troypoulter opened this issue Jan 13, 2024 · 0 comments
Labels
feature New feature or request

Comments

@troypoulter
Copy link
Owner

Only relying on the user's current location isn't too helpful if they aren't currently where they have their car or want to get fuel. Until maps are supported, being able to search by suburb or postcode will be very handy!

There are two main things to consider with this, getting the data and how to display it, here are some starting suggestions.

Getting the data

The dataset needs to contain not just all suburbs and their postcodes, also, their latitude and longitude as all our calculations come down to that, where two main options arise as I want to keep it mostly free of cost where possible.

  1. Google Maps Geocoding API: Geocoding API overview  |  Google for Developers seems to be the normal approach others go, well documented, good coverage and for the realistic user load should stay within the free tier. There are other alternatives like https://www.mapbox.com/ but I'm keen to more explore the common Google API if this route is taken.
  2. Matthew Proctor's Australian Suburb and Postcode Dataset: Australian Post Codes - Matthew Proctor is a fantastic resource made by @matthewproctor which is fairly up-to-date, is free and would allow experimentation with storing a large dataset and how to quickly retrieve values, likely utilising something like Redis.

Displaying the input and results

I'm thinking this could replace the home page main CTA with an input instead which, when selected, takes to the search page:

image

And then on the seach page, we already have these inputs which take up a good amount of space:

Desktop
image

Mobile
image

Perhaps we would make each input smaller on mobile or have an expand view, more experimentation would need to be done there.

@troypoulter troypoulter added the feature New feature or request label Jan 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant