Giter Club home page Giter Club logo

jtejido / geodesy-php Goto Github PK

View Code? Open in Web Editor NEW
27.0 3.0 5.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 distance-calculation distance-measure geodesic-functions latitude longitude geodesy-php distance geospatial web-mercator

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

geodesy-php's People

Contributors

jtejido avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

geodesy-php's Issues

Fetch for Datum updates via EPSG API

The Geographical Datum is fetched from a script I created a while back and realized that I haven't updated these since day 1. In order to avoid devs having to hardcode 'specific' datum (which leads to miscalculations) with updated ones (say, they only updated WGS when others have been left outdated, which leads to wrong transformations), it only makes sense to have to clean the script I initially used and upload it here on its own namespace.

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.