You could try something along this line

            HttpClient client  = new DefaultHttpClient();
            HttpGet    request = new HttpGet();
            request.setURI(new URI(  
"http://maps.google.com/maps/api/directions/json?origin="+locA.getLatitude()+","+locA.getLongitude()+"&destination="+locB.getLatitude()+","+locB.getLongitude()+"&mode=driving&sensor=false"
  ));
            HttpResponse response;
            response = client.execute(request);
            html     = EntityUtils.toString( response.getEntity() );
            client.getConnectionManager().shutdown();


On Jun 27, 2011, at 12:41 PM, Raghav Sood wrote:

> No one here is going to give you the complete code for free. Maybe if you 
> tried and asked for help on errors you could get somewhere.
> 
> On Mon, Jun 27, 2011 at 10:04 PM, Md.Fazla Rabbi OPU 
> <[email protected]> wrote:
> Hi all,
> I am unable to display the route between two places in google map. Please 
> anyone give me the complete source code of displaying route between two 
> places in google map.
> Best Wishes
> Md.Fazla Rabbi Opu
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> 
> 
> 
> -- 
> Raghav Sood
> http://www.raghavsood.com/
> http://www.androidappcheck.com/
> http://www.telstop.tel/
> 
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to