android - according to what google maps driving directions -


does know accordind google maps choosing driving directions?

fast roads , things that...

i'm using in app google maps v2 directions , want know according coosing directions.

according google can avoid highways, ferries , tolls. can choose mode, not 'fast roads'.
example:

http://maps.googleapis.com/maps/api/directions/json?origin=toronto&destination=montreal&sensor=false&key=api_key&avoid=highways&mode=driving 

for application can this:

string url = "http://maps.googleapis.com/maps/api/directions/xml?origin=toronto&destination=montreal&sensor=false&key=api_key&avoid=highways&mode=driving"; httpget httpget = new httpget(url); httpclient httpclient = new defaulthttpclient(); httpresponse httpresponse; try {     httpresponse = httpclient.execute(httpget);     httpentity httpentity = httpresponse.getentity();     inputstream inputstream = httpentity.getcontent();      documentbuilder builder = documentbuilderfactory.newinstance().newdocumentbuilder();     document doc = builder.parse(inputstream);     //in doc response } catch (exception e) {     e.printstacktrace(); } 

Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -