Skip to content

Add Spherical Law Of Cosines method #15

@vanderlee

Description

@vanderlee

Spherical Law Of Cosines is commonly used instead of Haversine due to better performance and very close results. Generally, if you need higher accuracy than SLOC, Haversine is probably too inaccurate as well.

See here for an explaination of the quality aspect:
http://gis.stackexchange.com/questions/4906/why-is-law-of-cosines-more-preferable-than-haversine-when-calculating-distance-b

See here for documentation:
https://en.wikipedia.org/wiki/Spherical_law_of_cosines

If you want, I have PHP code for it, but it's pretty trivial to implement yourself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions