2017 © Pedro Peláez
 

library proximity

Find "things" nearby, or as far away as possible, based on longitude and latitude.

image

ludens-reklamebyra/proximity

Find "things" nearby, or as far away as possible, based on longitude and latitude.

  • Monday, September 21, 2015
  • by stianba
  • Repository
  • 6 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 4 Open issues
  • 7 Versions
  • 67 % Grown

The README.md

Proximity

Build Status, (*1)

Find "things" nearby, or as far away as possible, based on longitude and latitude., (*2)

Install

$ composer require ludens-reklamebyra/proximity

Usage

<?php
use Proximity\Proximity;

$dummyData = array(
    [
        'id' => 2,
        'latitude' => 59.878592,
        'longitude' => 10.807647
    ],
    [
        'id' => 4,
        'latitude' => 59.122701,
        'longitude' => 11.388684
    ],
    [
        'id' => 3,
        'latitude' => 62.596278,
        'longitude' => 6.443401
    ],
    [
        'id' => 5,
        'latitude' => 70.636660,
        'longitude' => 29.724778
    ],
);

$proximity = new Proximity($dummyData);
$proximity->search('risør', SORT_DESC);

new Proximity([elements], [options])

elements [array]

Each element has to include:, (*3)

{
  longitude: float,
  latitude: float
}

options [array]

array(
    'language' => 'en' // Language of returned Google Maps results
)

The Versions

21/09 2015

dev-master

9999999-dev

Find "things" nearby, or as far away as possible, based on longitude and latitude.

  Sources   Download

MIT

The Requires

 

The Development Requires

geo longlat proximity

21/09 2015

v1.0.5

1.0.5.0

Find "things" nearby, or as far away as possible, based on longitude and latitude.

  Sources   Download

MIT

The Requires

 

The Development Requires

geo longlat proximity

21/09 2015

v1.0.4

1.0.4.0

Find "things" nearby, or as far away as possible, based on longitude and latitude.

  Sources   Download

MIT

The Requires

 

The Development Requires

geo longlat proximity

21/09 2015

v1.0.3

1.0.3.0

Find "things" nearby, or as far away as possible, based on longitude and latitude.

  Sources   Download

MIT

The Requires

 

The Development Requires

geo longlat proximity

21/09 2015

v1.0.2

1.0.2.0

Find "things" nearby, or as far away as possible, based on longitude and latitude.

  Sources   Download

MIT

The Requires

 

geo longlat proximity

21/09 2015

v1.0.1

1.0.1.0

Find "things" nearby, or as far away as possible, based on longitude and latitude.

  Sources   Download

MIT

The Requires

 

geo longlat proximity

21/09 2015

v1.0.0

1.0.0.0

Find "things" nearby, or as far away as possible, based on longitude and latitude.

  Sources   Download

MIT

The Requires

 

geo longlat proximity