Skip to content

Latest commit

 

History

History
42 lines (23 loc) · 1.34 KB

README.md

File metadata and controls

42 lines (23 loc) · 1.34 KB

excel2kml

Python (v3.5) script to generate a KML file to mark points on googlemaps from an excel sheet, with custom icons' colors.

Dependencies

  • # pip3 install openpyxl
  • # pip3 install unidecode

Usage

Firstly, there has to be a column with the places' names as you provide their range on the script.

Then, point the column which have the respective pair of (Latitude,Longitude) coordinates.

Finally assign whether there is a colors column for the markers if you intend to have custom ones. (Attention: The default color is RED for no custom colors)

First step

If everything worked as intended you shall have the kml file fully functional waiting to be imported.

Access "My Maps", and in any map on a empty layer, you'll see the Import button. Just upload the kml file and it will mark every point, with it's color, on the right spot on the map.

Second step

Voilá!

Final

ToDo

  1. Add more colors possibilities.
  2. Option to have column with points descriptions.
  3. Point if user have Lat,Long or Long,Lat format.
  4. If cell is blank on colors column -> default color.
  5. Get user input for default color as well as Input for layer's name and Map's name.