markcushman / motomap

mkgmap configuration to create adventure motorcycle maps for Garmin devices
MIT License
9 stars 2 forks source link

Nice job, idea for improvement #3

Open tits4net opened 7 months ago

tits4net commented 7 months ago

Hey !

I found this repo a few days ago and it's a very nice job, thanks a lot !

Your map idea was perfect for me but the containerization and CI was still something WIP ... so I took a few hour to create my own "wrapper" around your repo fork if you want to have a look : https://github.com/tits4net/motomap.

I would be ready to do a PR for part of it if you want, let me know !

As I now have a working repo with all the basics I may work on following topics, if I can give back to this repo ;-)

markcushman commented 7 months ago

Hey thanks for the feedback! I did this mainly for myself but glad you found it useful!

I was doing this to automate building the pre-built maps for https://motomap.org/ and since I host the files on Azure I wanted to make it all run there. Basic workflow is:

  1. Whenever I update the motomap styles or mkgmap config, build a new container image and store it in an Azure Container Registry
  2. Have an Azure Function download the source maps from Geofabrik and push them to storage, create the .yaml configs beside them (this is WIP)
  3. I have an Azure Function that listens for uploaded files: https://github.com/markcushman/motomap_mapupload and then launches an ACI from the registry to build the map and output the .img file back to storage
  4. Alert gets sent to me that a new map was created (LogAnalytics Alert rule)
  5. Links on https://motomap.org/ get updated to the new location

Your updates to add/remove POI and dirt roads/tracks could be flags in the .yaml config file - I wanted to be able to use that config file in the future for more options. Idea is to have a "map builder" website where you could go "order" a map to be built, give it the options you want - this generates the .yaml and then my automated Azure process would build the map and e-mail the user once complete with a download location.

For the maps themselves I do want to do a few things:

If you make improvements to the map code to make the maps better I'll for sure take PRs, and if your wrapper can coexist with my build process for Azure I'm totally open for that as well.