Skip to content

Add search by suburb/postcode #2

@troypoulter

Description

@troypoulter

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions