Skip to main content

Posts

GeodesyPHP - A Great-Earth Distance library

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 transforming different Reference Datums. It provides distance calculations thru: Spherical Law of Cosines Haversine formula  (Half a Versine - versed sine) Vincenty's formula Thomas' formula Hubeny's formula Andoyer-Lambert's formula Elliptic Distance Forsythe-Andoyer-Lambert Formula Note: This library is a collection that solves the Inverse geodetic problem . Installation: composer require jtejido/geodesy-php Usage Distance Calculation All classes receives and gives all values in  Metre unit of length by default. use Geodesy\Location\LatLong; use Geodes...

Basset - Information Retrieval Library in PHP

Basset Basset is a full-text  PHP Information Retrieval library. This is a collection of developments in the field of IR and ported over to PHP for research purposes. Basset provides different ways of searching through documents in a collection (ad-hoc), by applying advanced and experimental IR algorithms and/or techniques gathered from different Research studies and Conferences, most notably: TREC SIGIR ECIR ACM Basics Warning: This is a tool that is continuously under development. Please use this as a research tool for your otherwise special Production needs. Adding Documents Basset manages adding document thru the IndexWriter Class. It processes the documents you'll be adding in and later on commit to an external file. It takes a directory path, and overwrite (they both default to '../index/' and true consecutively). Setting overwrite to false means that you won't be accidentally overwriting any existing index inside the directory. Methods:...