A class for encoding coordinate data.