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

Location #8

Open
supernova-at opened this issue Dec 22, 2016 · 5 comments
Open

Location #8

supernova-at opened this issue Dec 22, 2016 · 5 comments

Comments

@supernova-at
Copy link
Owner

Currently the app uses the user's current location to query for representatives.

It would be nice to:

  • Show the user the location used for the query (City, State would likely suffice)
  • Allow the user to pin / save their location so that if they use the app on the go, they can still contact their own reps
  • Look up reps by a location that is not the user's current location

The location also is not currently cached. Doing so would be a minor performance improvement and would shield the app from not functioning if the user disables GPS or location services after we cache.

@dallashudgens
Copy link

^ I like the offline mentality. If the information has been loaded before, being able to view it offline (as well as if location services are off) would be awesome

@supernova-at
Copy link
Owner Author

Unfortunately the Google Civic API that we use to actually fetch the representatives has a restriction against caching its results, so we can't go fully offline.

But we can cache the location and take that part offline.

@dallashudgens
Copy link

dallashudgens commented Jan 6, 2017

I came up with some initial ideas for how entering zip code/changing location might work. They are just rough outlines, but they also include possible animations

fullsizerender 62
fullsizerender 61

@supernova-at
Copy link
Owner Author

@dallashudgens love it! The tap on the current location to bring down the ZIP input is awesome.

As a heads up, some US House of Representatives overlap zip codes. In other words, two people who have the same ZIP may not have the same rep. Check out http://www.fyi.legis.state.tx.us/Zip.aspx and enter zip code 78613.

I think the common use case is that we'll be able to use the ZIP, but we may be forced to prompt for additional address information as well, which gets clunky 😞

@dallashudgens
Copy link

gotcha. We can always modify it to have a couple fields instead of the zip code. I just jumped to zip because it is the smallest haha

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

No branches or pull requests

2 participants