Show Directions | Google Maps Tutorial (Android Tutorials) HD
Learn more about Polyline encoding : https://developers.google.com/maps/documentation/utilities/polylinealgorithm Link to Source code : https://goo.gl/kWsFJT In this Google Maps tutorial, I am showing you how to display Directions from your location to the destination. The layout is exactly same and we are just going to change some things from the Duration tutorial. We are just fetching one value from the json response here which is polyline. Polyline stores many LatLng values from the path and gives perfect paths. If you fetch latitude and longitude values of the steps and display a line then it will not be as accurate. Hence, using polyline is the best way to do it. Find me here : Google+ : https://plus.google.com/u/0/b/105970252005982916681/105970252005982916681/posts Twitter : https://twitter.com/AndroidAcademy1 Facebook : https://www.facebook.com/AndroidAcademy8?ref=hl
Похожие видео
Показать еще