2017 © Pedro Peláez
 

package laracoord

Laravel 5 package for geolocation distance calculations

image

ivanciric/laracoord

Laravel 5 package for geolocation distance calculations

  • Tuesday, December 20, 2016
  • by ivanciric
  • Repository
  • 1 Watchers
  • 1 Stars
  • 195 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Laracoord

Calculate distance between two points on a globe., (*1)

getDistance() method:, (*2)

No dependencies, just pass sets of coordinates to calculate distance between places., (*3)

Installation:, (*4)

Add, (*5)

"ivanciric/laracoord": "dev-master" 

to composer "require" array., (*6)

Run "composer update"., (*7)

You can now use the class:, (*8)

$g = Laracoord::getDistance(
            [
                'lon' => 25.3892,
                'lat' => 35.3172
            ],
            [
                'lon' => 28.3892,
                'lat' => 37.3172
            ],
            'km'
        );

dd($g);

[Screenshot], (*9)

Related links:, (*10)

http://mathworld.wolfram.com/Haversine.html, (*11)

http://www.codecodex.com/wiki/Calculate_distance_between_two_points_on_a_globe#PHP, (*12)

The Versions

20/12 2016

dev-master

9999999-dev

Laravel 5 package for geolocation distance calculations

  Sources   Download

MIT