What is the best way to store/expose locations?
Things to consider:
- I want to expose only locations from a specific area to user
- I want to be able to let user pick more or less direct locations (ex. suburb or city)
- It has to be future proof, let's say the area of available locations will expand
Are there more things to consider I haven't thought about?
The way I was thinking of doing it is to store location names as a tree structure.
Australia -> NSW -> Sydney -> Surry Hills -> 2011
The end result doesn't have to be exactly as example picture. Also maybe I should not store locations at all? I was thinking to import them as well into a system from a geoJSON file.
Use case example
Let's say we have companies and the map of locations where they provide services. If the user is looking for companies in a suburb I'd like to show him the ones that provide services in the whole city as well (parent location).