<div dir="ltr">Hi,<div><br></div><div>On this <a href="https://graphhopper.com/#overview">https://graphhopper.com/#overview</a></div><div><br></div><div><h4 style="font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-weight:500;line-height:1.1;color:rgb(51,51,51);margin-top:10px;margin-bottom:10px;font-size:18px">Web</h4><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:20px">With the web module we provide code to query GraphHopper over HTTP and decrease bandwidth usage as much as possible. For that we use the polyline encoding from Google, the Ramer–Douglas–Peucker algorithm and a simple GZIP servlet filter. <u>On the client side we provide Java and JavaScript code (via Leaflet) to consume that service and visualize the routes</u>.</span><br></div><div><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:20px"><br></span></div><div><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:20px">How can i use the web api and where is the javascript code to </span><u style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:20px"> to consume that service and visualize the routes</u><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:20px">.</span></div><div><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:20px"><br></span></div><div><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:20px">Thanks</span></div></div>