Google Maps Polyline Getpath

In this article, we will develop an Android application which demonstrates how to draw a driving route from my location ( current location ) to a destination location in Google Maps Android API V2. Get a polyline from Google maps directions V3. In this example, the markers are draggable and snap to a street when the drag ends. » Google Maps API » Google Maps - Polyline. Google Direction API for getting the routes from a source address to final address. As a side note, I have. Also, I'll walk through you how to show interactive Polylines on Google Maps, when the user adds origin and destination address. I want to draw a curved / Arc dotted polyline between two latitude and longitude. NET Google Map Control wraps Google Maps API functionality, providing an easy and fast way of adding Google Maps in your ASP. 3 กันต่อครับ ซึ่งเนื้อหาจะเป็นระดับAdvandce. Re: Draw lines between markers on Google Map? Nov 22, 2013 01:11 PM | Rion Williams | LINK The Google Maps Javascript API has a variety of features relating to actually drawing on the maps themselves using coordinates from within your maps. Quick google and this comes up. In addition, for each vertex (location) in an encoded polyline, a level can be specified indicating that the location should appear on that level and any level higher (i. Their desktop application does perform this task much better and in various ways, however that's the advantages that come about when legal users pay 1000's for their application. This article covers How to Create Polygons and Polylines with WP Google Maps. Maps in mobile applications have taken user expereince to a whole new level. var polyline=new google. I will implement below on how to implement Google Maps and Directions API using Kotlin and we are going to plot a route from origin to destination. getPath(); Because path is an MVCArray, we can simply append a new coordinate and it will automatically appear path. js, you can visit our another blog Leaflet js – Getting Started – create Map Application. Google Maps Web Services API. Download now. The "PHP Google Maps API" Project. Set “opacity” of polyline to 0 and “Line thickness” to very small value e. Google Maps provides an API using which you can customize the maps and the information displayed on them. Multipart polyline features are used to store noncontiguous polylines as a single polyline feature with one set of attributes. google-maps line android select-by-location share | improve this question. Discussion in 'Android Questions' started by BarryW, Apr 16, 2015. GooglePlayServices. Import Google Earth™ terrain. Polyline({ paths: arr, strokeColor. In this article I will show you how to get even better performance by encoding the polylines on the server. In this example, polylines following the streets are added between the snapped points. getPath(). Google Maps has a well-documented API for customising maps with your own imagery and content. Both ends up with straight line. If you can’t read French, Google Translate is your friend! FWIW–if anyone is interested and so inclined–there is a potential improvement that could be made to the Google Encoded Polyline implementation allowing users to specify a desired number of significant digits before rounding the Latitude and Longitude coordinate values prior to encoding. Get started today Stand Out as the employee with proven skills. Apart from being a data scientist, I also spend a lot of time on my bike. when i try to update the polyline path it disappears. By specifying the origin point, rotation angle and and mesh resolution the density and precision can be adjusted. First question - In Google Maps Javascript v3, how can I allow Drawing a Polygon with Google Maps. To add the Google Play Services Map package, right-click the References folder of your project in the Solution Explorer and click Manage NuGet Packages: This opens the NuGet Package Manager. Adding Highlighted Routes from Polyline Google API to Xamarin Forms Map When we were tasked with showing a map with a route highlighted on it, we initially went to the Xamarin articles you've no doubt come across already. For standard API users, if you're using the API under the standard plan, you must use an API key set up in a project of your choice. Amazing stuff Dan. [POLYLINE]. An API is a set of methods and tools that can be used for building software applications. GoogleMaps. Google Relative Pixel A Perl module to calculate "relative pixel" for use with the Google Maps API. Online CSV Polyline Encoder The online CSV polyline encoder can be used to create encoded polylines by inputting points in CSV latitude and longitude format. Click the "Add Location" button to add it to the Locations List. Google Maps API This tutorial is about the Google Maps API ( A pplication P rogramming I nterface). I was investigating using Google Maps in a web-application a while back and couldn't find a clear example that showed how to do it with MVC. For that I used google direction api and calculate points between them using decoding them using formula If you have to do the same thing in your application you can use this formula. To change the info window's location you may either change its position explicitly by calling setPosition() on the info window, or by attaching it to a new marker using the InfoWindow. The maps from Google Maps are shown in full screen mode or immersive mode without any object to interfere. I have more than 1000 latitudes and longitudes. My Polyline would have random right-angle turns that effectively ruined my path. Gets this polyline's id. com, "Get Directions"), you can drag the polyline, right click on it (or on markers), this has the effect to display a menu. [POLYLINE]. For editing - if you have a kml file uploaded on a server, and you want to edit its coordinates, you may use my edit tool Edit tool for Google maps polyline and polygon You will need a PC or laptop with a large amount of computer memory if your kml file has 1000 coordinate pairs or more. computeDistanceBetween. I've searched for solutions and tried different header settings, all of which have no effect. You can create single-part and multipart polyline features on the same layer. The map and the markers seem to render correctly, sort of, but the polyline is definitely missing and any attempt to zoom breaks the thing entirely. Project Home Demos Docs Features To-dos Download. IconSequence interface Describes how icons are to be rendered on a line. Google Maps Android: With maps SDK you can use google maps in android. encodePath() from my google. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. I changed the new google. If you wish to draw several lines on a custom map you need to do so one by one, it is not possible to draw separate lines at the same time. It is therefore no surprise that I am a huge fan of all kinds of wearable devices. Google provides various vector-based images (symbols) that can be used on a marker or a polyline. GoogleMaps. A semi-unofficial suite of most features. Also, I'll walk through you how to show interactive Polylines on Google Maps, when the user adds origin and destination address. Google maps does not remove any marker, circle or polyline you have added to your map which can quickly clutter up your map. Set only one point in polyline – e. The Google Maps API offers a class for drawing these lines on a Google Map called GPolyline. I would like to display these polylines on a Javascript google map V3 but there doesn't seem to be a way. I get polygons and polylines from data stored in a MySQL db, wich I convert in js arrays by js. You can also add text with colors, resize and rotate them All colors support transparency. Select Xamarin. In this example, the two previous features are combined. 27 videos Play all Google Maps and Google Directions API CodingWithMitch Java Project Tutorial - Make Login and Register Form Step by Step Using NetBeans And MySQL Database - Duration: 3:43:32. Click on the map and the marker will be added to the nearest known street. latLng); Add a new marker at the new plotted point on the polyline. Google Android Maps API v2 handles access to Google Maps server, map display, data downloading and response to me map gestures. Google Maps uses the WGS84 datum so the labels on the lat/lon graticule reflect this. PolylineOptions. Encoding works great, but I ran into an issue where some of my encoded paths, generated by google. Polygons and Polylines. Angular 2+ Google Maps Components. This chapter explains how to load a simple Google Map on. You can add vector-based images to a polyline in the form of symbols. Polylineクラスはポリラインを表示するためのクラスです。ポリラインは、任意の数だけ指定した位置座標を結ぶ線です。. Android - Google Maps - Android allows us to integrate google maps in our application. Google Maps. Background There were some "gotchas" I encountered while putting this together. Until automated tests are available, please ensure that all features on this page works. decodePath() method. GooglePlayServices. Polylines in Google maps Encoded Polylines (client-side) This example has lots of coordinates that are placed on the map by adding several encoded polylines. Thanks for the feedback Jeff. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. Today, I'm pleased to announce that our user interface functionality for editable polylines and polygons is now part of the Maps API. We recommend that in many cases, you create a function for removing existing markers, circles or polylines before you add new ones like the one below:. I have to draw polyline of each object based on their lats and longs. Discover how you can start using Google Maps Platform to visualize your passion projects. GitHub makes it easy to scale back on context switching. Polylines Polylines are used to mark several latitude and longitudes on the Google Maps API. I was looking for some code which pulls Google co-ordinates (latitude & longitude) from database and plot the respective path on my Google map. The maps from Google Maps are shown in full screen mode or immersive mode without any object to interfere. Markers in the Google Maps API are used to locate a single place. When the providing a polygon as input, the first and last point of the list MUST have the same latitude and longitude (i. Like for example a road on a map. In the previous chapter, we learned how to use markers in Google Maps. Select Xamarin. Polygons, polylines and ground overlays are useful tools to make your maps work for your users. There are so many prior examples of image rotation in a browser view that I won't broach that subject. Amazing stuff Dan. I've also tried to alternatively calculate the LatLng of the ship location by using google. First of all, thanks for this code, it was really helpful on what i had to do. I'm building an application with goglemaps v3, but I'm having serious difficulties in centering the map on some displayed polygons/ polylines. I was looking for some code which pulls Google co-ordinates (latitude & longitude) from database and plot the respective path on my Google map. I am develping the google map web application with the help of user control (Google Map Control for asp. I've found code to implement this in non-Appery mapping, but can you tell me how we incorporate the Poly lines into the Appery Map object in IONIC projects? The code to do this outside of Appery Google Map object is: function initMap() { var map = new google. Thanks for the feedback Jeff. Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications. Adding Highlighted Routes from Polyline Google API to Xamarin Forms Map When we were tasked with showing a map with a route highlighted on it, we initially went to the Xamarin articles you've no doubt come across already. The Google Maps API Directions Service which receives direction requests and returns an efficient path. It wanted to know if it is possible to draw a route by means of polylines in google maps I have managed to draw a polylines of a marker to other one but the line is straight, does not follow the road. NET way of. In this example, the two previous features are combined. Adding a Symbol. Polyline({ path:list objek koordinat, strokeColor:"kode warna", strokeOpacity: nilai transparansi , strokeWeight:lebar });. How to Create Polygons and Polylines. But when I execute my page, it takes more than 3 minutes and show nothing. You can add vector-based images to a polyline in the form of symbols. ROADMAP, 'map_style'] }; All of that works, so I want to use the same current location code and draw a line for each location that gets plotted when I click them in cascadedropdownlist. With WP Google Maps, you can create polygon shapes and polylines on your map with an easy to use interface. for removing points , adding points end of polyline know can use. I have a google map sample with multiple polygons. So I studied the Google Maps JavaScript API and implemented a function which reads the GPS co-ordinates from a ASP. On long pressing a location in the Google Maps, a driving route will be drawn from my current location to the long pressed location. Detect if one of the points on the polyline paths intersects a circle - maps. The layout is exactly same and we are just going to change some things from the. You can show any location on the map , or can show different routes on the map e. Set “opacity” of polyline to 0 and “Line thickness” to very small value e. Polylines in Google maps Encoded Polylines (client-side) This example has lots of coordinates that are placed on the map by adding several encoded polylines. mm format, Geo RSS format. google maps API javascript v3 - polyline snap to road - snaptoroad. In this article, we will create an Android application which draws polyline and markers along the tapped positions in Google Map Android API V2. I working on a simple map app, and I'm able to create a polyline to mark my route pushing a list of coordinates I have. " Google Maps Platform was almost a foregone conclusion due to its familiarity, reliability, accuracy, flexibility, ongoing innovation, and relationships with other data providers. So back to design. Thanks for the feedback Jeff. The function bufferPolyline retrieves the driving directions polyline created by Google Maps and adds it as a buffer parameter. I have to draw polyline of each object based on their lats and longs. If you’ve built an application using the Google Maps Api for Flash and taken advantage of the Directions class then the next thing you’ll want to do is store that route. Google Maps is a free web mapping service by Google that provides various types of geographical information. It does not depend on Google, so you do not need to pay fees as you may need to when you use Google Maps. The encoding is performed with a Javascript in the browser. When a map is restored from a Bundle, polylines that were on that map are also restored. ROADMAP, 'map_style'] }; All of that works, so I want to use the same current location code and draw a line for each location that gets plotted when I click them in cascadedropdownlist. Customize a polyline. * @param {google. Maps in mobile applications have taken user expereince to a whole new level. Find local businesses, view maps and get driving directions in Google Maps. The entire module is available at npm google-maps-react. You have the option of defining the color, line width and transparency of each shape or line. 0009 (Setting to 0 not working for me). Given below is a list of predefined symbols provided by Google and their class names −. The example for my. I'm trying to allow a user to draw a polygon on a Google Map and once it's drawn, I would like to get the coordinates. Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. Overlays are objects on the map that are bound to latitude/longitude coordinates. Like for example a road on a map. I changed the new google. The Google Maps Javascript API has a variety of features relating to actually drawing on the maps themselves using coordinates from within your maps. Angular Google Maps is a set of directives (part of angular-ui) written in CoffeeScript and Javascript which integrate Google Maps in an AngularJS applications. This documentation is current for WP Google Maps version 6. Google Maps API This tutorial is about the Google Maps API ( A pplication P rogramming I nterface). Enable JavaScript to see Google Maps. CreateInstance("google. Markers in the Google Maps API are used to locate a single place. With Google Maps Platform products and some help from the Google developer community, Banton built his map in just a few days, compiling the data and adding richer details in his spare time. Interactive Polyline Encoder Utility; google maps Polylines in Google Maps are formed as a set of latitude/longitude pairs. Using Google Maps, one can. We all know how important maps have been to Android Apps. Google maps javascript api path editor. 0009 (Setting to 0 not working for me). NET way of. In the image, the Google directions is the light blue and the polyline is the darker blue: You can see it's quite inaccurate. Overlays are objects on the map that are bound to latitude/longitude coordinates. When using google maps (maps. Keep reading and you'll see the demo video at…. A Google Maps compatible Polyline. While instantiating this class, we have to. net mvc Tutorial 6 Zamung TV. Both ends up with straight line. This marker has to show information of the previous marker in the polyline (the one taked of th. Apparently each polyline object has to be produced individually and can only have one line color:. This plugin does not currently support displaying a Google Map within the Flutter widget hierarchy. Google Maps Api V3 กับการสร้าง Polyline แบบง่ายๆ สอนทำระบบสมัครสมาชิกด้วย Yii Framework ตอนที่ 2 (จ. In this example, polylines following the streets are added between the snapped points. What I require is to email the user's recorded positions, so when they receive the email they can click on the link and this link will open up Bing Maps and display. Google Relative Pixel A Perl module to calculate "relative pixel" for use with the Google Maps API. Overlays are objects on the map that are bound to latitude/longitude coordinates. Project Home Demos Docs Features To-dos Download. Initially the route is shown properly, however after showing about 20 routes, the routes no longer are shown on the map. toMap24 public com. In this Google Maps Distance Calculator (It is clear from the name) we need to calculate the distance between two coordinates from the map. When a map is restored from a Bundle, polylines that were on that map are also restored. My Polyline would have random right-angle turns that effectively ruined my path. This problem is based on the Google Polyline Encoder algorithm. API docs for the Polyline class from the google_maps_flutter library, for the Dart programming language. The BufferParameters object holds all of the input parameters for the buffers, including the buffer distance, whether or not to union the results, and the units to use (in this case, 9001 is the SRUnitType for "meter"). First of all, thanks for this code, it was really helpful on what i had to do. We recommend that in many cases, you create a function for removing existing markers, circles or polylines before you add new ones like the one below:. This article covers How to Create Polygons and Polylines with WP Google Maps. Interactive Polyline Encoder Utility; google maps Polylines in Google Maps are formed as a set of latitude/longitude pairs. 58522) then taht works, but with looped array, that wont work, any suggestions? Is it even possible to show data in this way ?. I want to draw a curved / Arc dotted polyline between two latitude and longitude. LatLng(lat, long), //test current location zoom: 10, mapTypeIds: [google. Google Maps has several types of overlays: Marker - Single locations on a map. Performance issue on rending large number of markers and polylines in Google Map Performance issue on. In this example, polylines following the streets are added between the snapped points. Convert Google directions to GeoJSON points or polylines Posted on September 23, 2014 by zev@zevross. So back to design. Both ends up with straight line. Dashed Lines (Symbols). NET pages with "Zero-Written-JavaScript" code. Also, I'll walk through you how to show interactive Polylines on Google Maps, when the user adds origin and destination address. Download now. Polylineクラスはポリラインを表示するためのクラスです。ポリラインは、任意の数だけ指定した位置座標を結ぶ線です。. Setting either offset or repeat to a pixel value will cause the distances to be calculated in pixels on the screen. I am currently developing an Android application for bus transport, as I use Google Maps API v3. Simplifies the given poly (polyline or polygon) using the Douglas-Peucker decimation algorithm. Playing with Google Maps and encoded polylines 11 May 2008 I've been playing around with the Google Maps API for a bit and it's turned out to be a great way to get started with "mashups" and the like. Today, I'm pleased to announce that our user interface functionality for editable polylines and polygons is now part of the Maps API. Buy DML Google Map Script for PHP by ard-soft on CodeCanyon. Then I draw polylines between the markers. The example for my. I tried the Mathematica tutorial but got lost. With WP Google Maps, you can create polygon shapes and polylines on your map with an easy to use interface. Unlike behavior in V2 of the Google Maps API, however, a map may now display multiple InfoWindowobjects if you so choose. Leaflet is a JavaScript library that became popular for creating mobile friendly Web maps applications. You may compute this heading between two locations with the computeHeading () method, passing it two from and to LatLng objects. Google maps does not remove any marker, circle or polyline you have added to your map which can quickly clutter up your map. I am trying to add a Google map to my site. You can create single-part and multipart polyline features on the same layer. Polyline", polylineOptions); The above code works fine on Windows with IE8/IE9 Firefox 3. Here you can view the output of the example and you can also "try it yourself" by clicking on "Live Demo" button given at the bottom. You may drag the marker to adjust the location of the location. I have multiple objects on google map and each object has multiple latitude and longitude. Web Form for converting Track file to Google maps Get GPS coordinates of a mouse click Mouse click to GPS GLatLng list - this utility is good for making a list of GLatLng() points for making a polyline from mouse clicks on a google map. All your code in one place. You can add vector-based images to a polyline in the form of symbols. Now we'll see how to display them on a map using Google Maps API. In this i want to show the particular vehicle latitude and longitude. polyline animation - google maps Kal J. The city, for which I am developing the app, recently had it transport scheme changed so I can't use GTFS as the information in it is outdated. To use this library you need a Web API key. Site Links: Return to Index. open() method. Get started today Stand Out as the employee with proven skills. NET Custom Control, providing an easy and fast way of adding Google Maps in your ASP. Read rendered documentation, see the history of any file, and collaborate with contributors on projects across GitHub. Google Maps Platform を使えば、正確なリアルタイム データと動的な画像を使用して、臨場感のあるロケーション体験を生み出したり、ビジネス上の意思決定をより的確に行ったりすることができます。. You can create different maps, markers and themes and adjust all colors in the map, set the controls to handle the map like zooming, map types, fullscreen and streetview and much more. The Google Maps API has several types of overlays that you can add programmatically: * Single locations on the map are displayed using markers. However, those polylines will then be represented by different Polyline objects. The Google Maps Javascript API v3 provides overlays for drawing shapes, such as Polygons, Circles, Polylines and Rectangles. If you have any questions, feel free to ask. It converts Google Maps API Encoded Polylines to a list of points. To change the info window's location you may either change its position explicitly by calling setPosition() on the info window, or by attaching it to a new marker using the InfoWindow. Java Google Maps polyline encoding function In this post I'm going to detail the polyline encoding method I wrote in Java a while back. here, we will discuss how to use the shapes provided by Google Maps. any decrease in zoom. getPath() to access the path and work with it using the methods of MVCArray. This is not a realtime tracker, use it only if you already have a "yyyy-mm-dd. LatLng(lat, long), //test current location zoom: 10, mapTypeIds: [google. You can add lines or continuous lines to show the routes on the map. I'm trying to draw an encoded polyline via the Google Maps API (v3), and it seems to draw 'sort of' correctly (as in, roughly in the right area of the world ;) ) but otherwise is very, very wrong. Overview of the Algorithm. Program requires Data connection to work. Markers can also display custom icon images; Polyline - Series of straight lines on a map; Polygon - Series of straight lines on a map, and the shape is "closed". I'm building an application with goglemaps v3, but I'm having serious difficulties in centering the map on some displayed polygons/ polylines. A polyline's id can be used to retrieve the new instance of a Polyline object after such restoration. Polylines in Google maps Complex polylines. You can show any location on the map , or can show different routes on the map e. Amazing stuff Dan. I'm gonna try this out. I end up always drawing a straight line between two latitude and longitude. Unlike behavior in V2 of the Google Maps API, however, a map may now display multiple InfoWindowobjects if you so choose. Apart from being a data scientist, I also spend a lot of time on my bike. We all know how important maps have been to Android Apps. ideas happening? here code:. In this example, the two previous features are combined. Markers can also display custom icon images; Polyline - Series of straight lines on a map; Polygon - Series of straight lines on a map, and the shape is "closed". Thanks for the feedback Jeff. how to draw polylines on google map api in asp. Click detection begins by measuring the distance (in pixels) between the clicked point and the polyline. With WP Google Maps, you can create polygon shapes and polylines on your map with an easy to use interface. When the providing a polygon as input, the first and last point of the list MUST have the same latitude and longitude (i. You can add vector-based images to a polyline in the form of symbols. For React Native, i ended up using both react native maps and Google Directions Api…. 3 กันต่อครับ ซึ่งเนื้อหาจะเป็นระดับAdvandce. A polyline's id can be used to retrieve the new instance of a Polyline object after such restoration. In this article, we will develop an Android application which demonstrates how to draw a driving route from my location ( current location ) to a destination location in Google Maps Android API V2. It converts Google Maps API Encoded Polylines to a list of points. manually defined as "doulbe LatitudeL []. Polylines in Google Maps [Part 1] Polylines are used to mark out roads, borders and other things that are made of lines in maps. To add the Google Play Services Map package, right-click the References folder of your project in the Solution Explorer and click Manage NuGet Packages: This opens the NuGet Package Manager. getPath()はPolylineクラスのメソッドです。ポリラインのパスを取得します。. Snap point to street. Re: Draw lines between markers on Google Map? Nov 22, 2013 01:11 PM | Rion Williams | LINK The Google Maps Javascript API has a variety of features relating to actually drawing on the maps themselves using coordinates from within your maps. Google Maps Draw Route In this post we will develop an Android App to draw route on google maps (namely Google Maps Draw Route). Polygons and Polylines. After it, I use this list as the data for JSON Serialize. Create custom Google Maps with markers in your WordPress website in less than 30 seconds. How can I clear the old polyline when the user clicks on a new marker? You can see on line 163 where I tried to use set. Google Tile Calculations A Perl module to calculate just about anything tile related for use with the Google Maps API. Also, I’ll walk through you how to show interactive Polylines on Google Maps, when the user adds origin and destination address. (Probably to. Google Maps JavaScript API v3: method Polyline. net mvc Tutorial 6 Zamung TV. com, "Get Directions"), you can drag the polyline, right click on it (or on markers), this has the effect to display a menu. Today, I'm pleased to announce that our user interface functionality for editable polylines and polygons is now part of the Maps API. It wanted to know if it is possible to draw a route by means of polylines in google maps I have managed to draw a polylines of a marker to other one but the line is straight, does not follow the road. Create custom Google Maps with markers in your WordPress website in less than 30 seconds. You can also add text with colors, resize and rotate them All colors support transparency. Built on top of Google maps and using your phone's GPS locate, measure and record areas and distances. Google Maps - Polyline. Is there a way, through the Google Maps API to "average" these paths out? I was starting to head down a complicated path of computing the headings (geography util) and using those headings to get nearby polylines with similar headings and then averaging out the lats and lons to draw a polyline that was the average of all of the similar polylines. ROADMAP, 'map_style'] }; All of that works, so I want to use the same current location code and draw a line for each location that gets plotted when I click them in cascadedropdownlist. Web Form for converting Track file to Google maps Get GPS coordinates of a mouse click Mouse click to GPS GLatLng list - this utility is good for making a list of GLatLng() points for making a polyline from mouse clicks on a google map. LatLng(lat, long), //test current location zoom: 10, mapTypeIds: [google. add dynamic polyline in google map please anyone help am stuck with this may days How do I refresh a google map without affecting polylines How to do multiple marker on google map from sql database in asp. This documentation is current for WP Google Maps version 6. For React Native, i ended up using both react native maps and Google Directions Api…. In this article I will show you how to use these and how to deal with potential performance issues when the polylines gets more complex. Merge two or more polygons, points or polyline of Shapefile. build dependencies block. If, like me, you want to create some polylines or polygons on a Google Map then it can be quite laborious to have to find the latitude and longitude of the next point, add it to the code and so on. I am trying to get a polyline on a Google map after getting directions. Google Maps v3 Drawing Tools. far, works fine, dynamically add , remove points both sides of polyline. In this article, we will develop an Android application which demonstrates how to draw a driving route from my location ( current location ) to a destination location in Google Maps Android API V2.