Mapcode Library for Scala - not fully implemented yet