Friday, July 5, 2013

Re: [android-developers] Google direction API

This is your code

On Thu, Jul 4, 2013 at 9:19 PM, Sunny <menon1826@gmail.com> wrote:
String url = "origin=" +lat1 + " " + lon1  + "&destination=" + lat2 + " " + lon2 + "&sensor=true";

And this is the docs for that API.
https://developers.google.com/maps/documentation/directions/#RequestParameters

Required parameters

  • origin — The address or textual latitude/longitude value from which you wish to calculate directions. If you pass an address as a string, the Directions service will geocode the string and convert it to a latitude/longitude coordinate to calculate directions. If you pass coordinates, ensure that no space exists between the latitude and longitude values.
-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices

--
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment