2017 © Pedro Peláez
 

library open-location-code

PHP port of Google Open Location Codes.

image

salavert/open-location-code

PHP port of Google Open Location Codes.

  • Friday, December 1, 2017
  • by Salavert
  • Repository
  • 2 Watchers
  • 3 Stars
  • 143 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 2 Versions
  • 16 % Grown

The README.md

Open Location Codes

Build Status, (*1)

PHP port of Google Open Location Codes., (*2)

Open Location Codes are short, generated codes that can be used like street addresses, for places where street addresses don't exist., (*3)

http://openlocationcode.com, (*4)

Open Location Codes were developed at Google's Zurich engineering office, and then open sourced so that they can be freely used., (*5)

Usage

Encode latitude and longitude to obtain a code, (*6)

$latitude = 51.3701125;
$longitude = -1.217765625;
$olc = new OpenLocationCodes();
$openLocationCode = $olc->encode($latitude, $longitude); // Will return 9C3W9QCJ+2V

Installation

Update your composer.json, (*7)

"require": {
    "salavert/open-location-code": "1.*"
}

or use composer's require command:, (*8)

composer require salavert/open-location-code:1.*

Original code by Google

https://github.com/google/open-location-code, (*9)

The Versions

01/12 2017

dev-master

9999999-dev http://github.com/salavert/open-location-code

PHP port of Google Open Location Codes.

  Sources   Download

Apache License Version 2.0

The Requires

  • php >=5.3.0

 

The Development Requires

location open location codes php open location codes open location location codes

02/05 2015

v1.0

1.0.0.0 http://github.com/salavert/open-location-code

PHP port of Google Open Location Codes.

  Sources   Download

Apache License Version 2.0

The Requires

  • php >=5.3.0

 

The Development Requires

location open location codes php open location codes open location location codes