Giter Site home page Giter Site logo

hmerman6006 / geodesy-php Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jtejido/geodesy-php

0.0 0.0 0.0 204 KB

Geodesy PHP - Port of some known geodesic/math functions for getting distance from a known point A to a known point B given their coordinates. It also supports conversion between units of length, Polar position to Cartesian coordinates, and different Reference Datums.

Home Page: http://myth-of-sissyphus.blogspot.com/2018/04/geodesyphp-great-earth-distance-library.html

License: MIT License

PHP 100.00%

geodesy-php's Introduction

Earth

Geodesy-PHP

Geodesy-PHP is a port of some known geodesic/math functions for getting distance from a known point A to a known point B given their coordinates (good for working out distances between different latitude/longitude data provided by Google Geolocation or any RESTful APIs).

It also supports conversion between units of length, Polar position to Cartesian coordinates, and different Reference Datums.

It provides distance calculations by:

  1. Spherical Law of Cosines

  2. Haversine Formula

  1. Vincenty's Formula

  2. Hubeny's Formula

  3. Thomas' Formula

  4. Andoyer-Lambert Formula

  5. Elliptic Distance

  6. Forsythe-Andoyer-Lambert Formula

Unit Conversion

All operations are set in Metre. But it can also convert distance (and other transformation) values to:

  1. Kilometre

  2. Mile

  3. Nautical Mile

  4. Astronomical Unit

Position Conversion

It also allows coordinate/geographical conversions between the ff:

  1. Polar to Cartesian

  2. Cartesian to Polar

  3. Polar to Web Mercator

  4. Web Mercator to Polar

Transformation Options

Reference Datums are and will be, by default, set to WGS84. You can also transform one coordinate taken from a different source to another (see this for reference), as it also comes with pre-built datums (see the Datum namespace for options).

The following are the transformation options:

  1. 3-Parameter Molodensky Transformation

  2. 7-Parameter Helmert Transformation

  3. 10-Parameter Molodensky-Badekas Transformation

Documentation

You can read about it here

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.