Closed derekeder closed 7 years ago
Another option:
/?results_level=fed&results_level=state&results_level=county
I'd say use whichever format makes the parsing code in the JavaScript easiest, smallest.
My gut feeling is that it's /?results_level=fed,state,county,local
.
URLSearchParams would make this easy, but it has limited browser support.
Yup we should be able to pull those params either way. I'll go ahead and start a PR
@ghing finally got around to this. I ended up adding checkboxes below the search box that lets you select the level of government you want returned. This is also saved in the URL.
Here's an example: http://myreps.datamade.us/#/?address=1515%20W%20Augusta%20Blvd%2C%20Chicago%2C%20IL%2C%20United%20States&results_level=local&results_level=county
From @ghing in #13:
What pattern is easiest?
/?show_federal=1&show_state=1&show_county=1&show_local=1
/?results_level=fed,state,county,local