On 15 October 2010 12:01, anushree <[email protected]> wrote:

> calculate the nearest place to the current location

You need sensor=true if you are sensing the current location.

> this is my url ..
> URL url = new URL("http://maps.google.com/maps/api/directions/xml?
> origin=22.725313"+"75.865555"+"&destination"+lat+lng+"sensor=false");

I suggest playing at being a computer and following your instructions
to create the url. You will get something like
?origin=22.72531375.865555&destination=23.45678976.543210sensor=false

You need to add in some commas and another &, as well as using sensor=true.

Not sure why you posted to both groups.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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/google-maps-api?hl=en.

Reply via email to