Use longs instead of doubles to define coordinates (fixed precision)

Positions are now measured in whole nanodegrees. This might still
change, but the datatype (long) and basic setup will remain.