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

added google geocoding to get city/state/country #83

Open
wants to merge 12 commits into
base: designs_v1.1
Choose a base branch
from

Conversation

oianmol
Copy link
Contributor

@oianmol oianmol commented Apr 26, 2020

No description provided.

@oianmol oianmol requested a review from tsjamm April 26, 2020 07:18
@@ -10,6 +10,8 @@ class AppConstants {
static const NOT_TESTED_FEEL_SICK = 4;
static const NOT_TESTTED_NOT_SICK = 5;

static const API_KEY_GEOCODING = "put the api key here";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will move to .env I guess

static Map<String, dynamic> tokenRequestBody(String token, String deviceID, Location location) =>
{
"token": token,
static Future<bool> getZIPCode(Location fromLocation) async {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this should be renamed to something like checkLocationGate

@@ -162,3 +201,11 @@ class ApiRepository {
await sharedPrefs.setBool(DID_ALLOW_NOTIFY_WHEN_AVAILABLE, shouldNotify);
}
}

class Triple<T extends String, S extends String, C extends String> {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice name 😅 How about LocationGateTriple

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

Successfully merging this pull request may close these issues.

3 participants