Reputation: 948
I have 2 locations, given by a user. For exemple with these : editDepart = France; editArrivee = England; (It is really schematically)
Then, to draw my route between these two locations, I do that :
final StringBuilder url = new StringBuilder("http://maps.googleapis.com/maps/api/directions/xml?sensor=false&language=fr");
url.append("&origin=");
url.append(editDepart.replace(' ', '+'));
url.append("&destination=");
url.append(editArrivee.replace(' ', '+'));
//Calling the Web service
final InputStream stream = new URL(url.toString()).openStream();
Can I replace editDepart=France, by latitude and longitude Coordinates ?
Thanks in advance for your answers !
Best regards,
Tofuw
Upvotes: 0
Views: 749