Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Jon Scott
3,324 PointsPossible to import a map with overlays from a website that's frequently updated?
While this is not in reference to a particular area in the course study, I've been wracking my brain with an idea of how I could do this and would love to see an example of the code at work.
I'd like to import a google map that is updated by a goverment entity and have specific overlays into an application and notify as they are updated. For instance road closures, etc. I realize this might likely take contacting them for permission etc.. but I am looking at it purely from a learning perspective and have no intenon of really publishing it.
1 Answer
Ryan Farber
5,329 PointsHey Jon, I'm currently learning the in's and out's of the hardware on my phone in Android Development. I'm going to answer your question to the best of my ability. I'm assuming you have some basic knowledge of the Android. The map and overlays is on my to do project, so I feel inclined to answer.
Import a google map https://developers.google.com/maps/documentation/android/intro
GPS for update / Location http://developer.android.com/guide/topics/location/strategies.html
And for learning, I'm not a fan of re-inventing the wheel when learning. You can find a lot of simple projects to learn from at Github. One that seems similar to what you want to make, and a bit more is :
https://github.com/WSDOT/wsdot-android-app
I recommend looking through and figuring out all the "magic" behind it. Let me know if this answer helps.