I’d like to serve a dynamically generated KML file using ruby on rails. I made some research and I found kamel which looks great. The problem is that kame depends on ruby_kml gem which doesn’t seem to be available anymore.
$ gem install kamel
ERROR: While executing gem ... (Gem::DependencyError)
Unable to resolve dependencies: kamel requires ruby_kml (~> 0.1.4)
Searching ‘kml’ on rubygems.org was unsuccessful.
So does someone know any alternative to achieve KML generation in ruby on rails?
KML is just another XML, you can easily make your own “writer” which parses recursively and formats whatever input is passed in as a parameter and generates a string that looks like valid KML/XML.
Recommended reading for the options and the XML layout:
https://developers.google.com/kml/documentation/kmlreference