2017 © Pedro Peláez
 

library geohash

A geohash class to get some interesting data

image

cobak78/geohash

A geohash class to get some interesting data

  • Wednesday, March 22, 2017
  • by cobak78
  • Repository
  • 2 Watchers
  • 0 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Scrutinizer Code Quality Code Coverage Build Status Code Climate, (*1)

geohash

A geohash library to get some usefull data, (*2)

Install via composer:

composer require cobak78/geohash

Docker

Geohash includes a base image with test dependencies installed in. Use docker-compose file to stand up a fpm container with the app code mounted., (*3)

Usage

use library to get:, (*4)

1. Distance between two geo-located points in Km, Miles and Nautic miles:
    - pass _lat, lon, lat, lon_ and _unit_ parameters to function.

2. Minimum geohash precision for a given geoBound array and the number of squares you want to divide it.
    - pass an array like _[ top_left => [ lat => x, lon => y ], bottom_right => [ lat => x, lon => y ]_.
    - pass the number of squares, it has to be multiple of two.
    - Function will return the minimal geohash precision (from 1 to 12) who can contain every square.

The Versions

22/03 2017

dev-master

9999999-dev https://github.com/cobak78/geohash

A geohash class to get some interesting data

  Sources   Download

GNU

The Requires

  • php >=7.0

 

The Development Requires

maps geohash

22/03 2017

0.1.1

0.1.1.0 https://github.com/cobak78/geohash

A geohash class to get some interesting data

  Sources   Download

GNU

The Requires

  • php >=7.0

 

The Development Requires

maps geohash

22/03 2017

0.1.0

0.1.0.0 https://github.com/cobak78/geohash

A geohash class to get some interesting data

  Sources   Download

GNU

The Requires

  • php >=7.0

 

The Development Requires

maps geohash