Trace route walking or driving in android google maps api v2 using not deprecated methods -


i want make task , i´ve found libraries here tyczj , here akexorcist. these solutions libraries use httpclient , deprecated, there others?. thanks.

it useful.

  1. make own http request directions information the google directions api , overview_polyline string response.
  2. decode string using android-maps-utils library polyutil.decode method.

  3. add decoded points map:

    list<latlng> decodedpoints = polyutil.decode(polylinestring); polylineoptions options = new polylineoptions(); options.width(6); options.color(color.red); options.addall(decodedpoints);  map.addpolyline(options); 

Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -