JuliaGeo / Geodesy.jl

Work with points defined in various coordinate systems.
MIT License
112 stars 24 forks source link

Document the output units of the distance function #27

Open hmwesigwa opened 8 years ago

hmwesigwa commented 8 years ago

What are the outpu units for the function distance(a, b, [datum = wgs84])? Is there a function included to convert that distance to miles?

andyferris commented 8 years ago

Everything is currently implement in SI units, so you get metres.

Do you think using a seperate package for unit conversion would be suitable?

andyferris commented 8 years ago

Recall also that distance is direct Cartesian distance so far - we'd love to support geodesic distances too.

hmwesigwa commented 8 years ago

Great thanks! A package for unit conversion would definitely be convenient. Also mentioning that everything is implemented in SI units in the readme file would also be helpful to others. Thanks for the great work!

andyferris commented 8 years ago

Here's 4 unit packages that I'm aware of:

Not sure what is best for a simple conversion (most of these aim to assert correct dimensional analysis)