Hi,
All operations that accepts units of "degrees, radians, miles, or kilometers" can also accept "meters".
One of our developers called distance with unit "kilometers" and divided the result by 1000, because the documentation did not specify that it supports meters too.
Minor issue, not critical...
Thanks for the report @ozomer , good pickup!
Meters is included in the source code:
https://github.com/Turfjs/turf/blob/master/packages/turf-helpers/index.mjs#L10-L11
https://github.com/Turfjs/turf/blob/master/packages/turf-helpers/index.d.ts#L20
I agreed that we could add "meters" in the docs, however we shouldn't include every single unit of measurement in the docs (keep it short & simple).
I've always been converting meters to kilometers since I didn't know meters is supported too.
I agreed that we could add "meters" in the docs, however we shouldn't include every single unit of measurement in the docs (keep it short & simple).
I disagree, the documentation should document all supported options.
Most helpful comment
I've always been converting meters to kilometers since I didn't know meters is supported too.
I disagree, the documentation should document all supported options.