'How to create a polygon on Google map using list of GPS location

I have a list of customer (GPS coordinates) for each salesman in excel file. I want to create a polygon in Google map that shows area of each salesman in map.

Is there any tool that shows my salesman area in the Google map ? Route 22



Solution 1:[1]

For the first step it is easier to use Google Earth. To display data you need a google kml file.

Create a placemark, and use the Polygon.

More, see https://developers.google.com/kml/documentation/kml_tut

To display a kml in google maps, the file has to be located on a server reachable by an url. Ffor goggle earth a local file on your disk is sufficient.

Solution 2:[2]

For this problem, you may want to use a concave hull algorithm. You can read more in depth at https://gis.stackexchange.com/questions/39205/converting-point-sets-to-polygon-boundaries

In JavaScript, you can use https://www.npmjs.com/package/concaveman.

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 AlexWien
Solution 2 jpoehnelt