Google Maps API drawing polygon with JSTS Librery

One of our client  has asked for road map feature for their website. basically what he need is A Road map which list all places around the route.

Now getting distance between to points was very easy the important thing is how to draw polygon around route.

After lot of browsing and googling  I found amazing library which is able to draw polygon around route it’s called JSTS library.

please check this Example, you will be able to figure out Road Trip feature 😉

geocodezip is website which has google maps API libraries  you will be amazed what we can do with them please do check.


Categorized as js, PHP

By milind

Milind is a Senior WordPress Engineer at rtCamp. WordPress Ecosystem Contributor and AMP Support Engineer.

Leave a Reply