An initial draft for the API with the distance computation subsystem,
based on a quick chat with Ioan.