2017 © Pedro Peláez
 

library geocoder

image

biscolab/geocoder

  • Saturday, November 18, 2017
  • by biscolab
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

*** NO LONGER MANTAINED ***

Replaced by Google Maps PHP SDK, (*1)

Geocoder

Simple Google Maps Geocoder PHP library. Get Latitude and Longitude of selected address in few steps!, (*2)

Installation

You can install the package via composer:, (*3)

composer require biscolab/geocoder:^1.0

How to use

  1. Chose the address
$address = 'street <YOUR_STREET>, <YOUR_CITY>, <YOUR_COUNTRY>';
  1. Get location
$loc = (new Geocoder($address))->getLocation();
  1. Use data getLocation method returns a GeocoderLocation object. To retrieve latitude (Lat) and longitude (Lng) use the following methods:
/**
 * Return the latitude
 *
 * @return float
 */
$lat = $loc->getLat();

/**
 * Return the longitude
 *
 * @return float
 */
$lng = $loc->getLng();

That's it!, (*4)

The Versions

18/11 2017

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

  • php >=5.5.9|7.*

 

by Roberto Belotti

18/11 2017

v1.0

1.0.0.0

  Sources   Download

MIT

The Requires

  • php >=5.5.9|7.*

 

by Roberto Belotti