Skip to content
This repository has been archived by the owner on Jan 6, 2020. It is now read-only.

Current location integration with Android Location/Google Maps #2

Open
ppeters0502 opened this issue Aug 7, 2018 · 4 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@ppeters0502
Copy link
Contributor

Currently working on integrating with Google maps, so that longitude and latitude that are supplied to API call come from current location rather than manual entry.

@ppeters0502 ppeters0502 added the enhancement New feature or request label Aug 7, 2018
@ppeters0502 ppeters0502 self-assigned this Aug 7, 2018
@saiteja09
Copy link

saiteja09 commented Aug 7, 2018

Do we need Google Maps integration to get the latitude and longitude. I think, we can use Android's native API.
https://developer.android.com/reference/android/location/Location

@ppeters0502
Copy link
Contributor Author

Originally I had thought about using Android Location, but I wasn't sure if in using that, you'd have the option to select a different area (such as finding a city on a map) and use the latitude and longitude of the location you selected. That way, someone using the app could either use their phone's location, or select a different location.
To be honest, I wasn't sure if that was supported on Android Location, if it is then we can use the native Android API.

@saiteja09
Copy link

I was thinking, instead of using a map for the user to select the location, wouldn't it be more natural to just type in the location and autofill it, just like all the weather apps. We can use the Places API to autofill the city name and use that to get latitude and longitude.

https://developers.google.com/places/web-service/autocomplete

Let me know what you think about this.

@ppeters0502
Copy link
Contributor Author

Yeah, I like that! Easier for the user, and easier to put together!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants