Skip to content

AirswitchAsa/zenly-html-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zenly-html-converter

Python scripts for converting HTML files exported from Zenly, an app which recently bought by Snap and confirmed end of service to more general geocoding formats. I am supporting the conversion from zenly HTML to kml format, which is used by another application Fog of World for imports.

The kml format is introduced by google as a simple encoding for displaying geological data: https://developers.google.com/kml/documentation

Note that applications like Fog of World require all geocoding data to be defined as tracks in order to display. Therefore I am using LineString in kml to define each day as a track from the HTML files. This converter may work for other applications, but I only tested it on Fog of World.

requirements

note: I am not testing specific versions on these packages.

  • python == 3.9.7
  • simplekml == 1.3.6
  • beautifulsoup4 == 4.10.0

usage

Make sure you have all the dependencies, and your data in /data organized in the same way as specified in /test_data. Then you may run the following command from root to convert your data into kml files. The results are written in /out. Add tag --all to make it output one kml file.

python ./script/convert_kml.py data

Use the notebook under /notebook to test your changes, if needed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages