Skip to content

Commit a2d039f

Browse files
committed
Readme update & camelCase methods
1 parent 7816634 commit a2d039f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# PHP Wrapper for Pro6PP Api
22

3-
[![Latest version on Packagist](https://img.shields.io/packagist/v/pendonl/laravel-fontawesome.svg?style=flat-square)](https://packagist.org/packages/pendonl/laravel-fontawesome)
3+
[![Latest version on Packagist](https://img.shields.io/packagist/v/pendonl/pro6pp-php-wrapper.svg?style=flat-square)](https://packagist.org/packages/pendonl/laravel-fontawesome)
44
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)
5-
[![Travis branch](https://img.shields.io/travis/PendoNL/laravel-fontawesome/master.svg)](https://travis-ci.org/PendoNL/laravel-fontawesome)
6-
[![Scrutinizer](https://img.shields.io/scrutinizer/g/PendoNL/laravel-fontawesome.svg)](https://scrutinizer-ci.com/g/PendoNL/laravel-fontawesome/)
7-
[![SensioLabs Insight](https://img.shields.io/sensiolabs/i/e660c560-9d50-43e3-9be1-e556ba78f189.svg)](https://insight.sensiolabs.com/projects/e660c560-9d50-43e3-9be1-e556ba78f189)
8-
[![Github All Releases](https://img.shields.io/github/downloads/pendo/laravel-fontawesome/total.svg)](https://github.com/pendonl/laravel-fontawesome)
5+
[![Travis branch](https://img.shields.io/travis/PendoNL/pro6pp-php-wrapper/master.svg)](https://travis-ci.org/PendoNL/laravel-fontawesome)
6+
[![Scrutinizer](https://img.shields.io/scrutinizer/g/PendoNL/pro6pp-php-wrapper.svg)](https://scrutinizer-ci.com/g/PendoNL/laravel-fontawesome/)
7+
[![SensioLabs Insight](https://img.shields.io/sensiolabs/i/0bcf56eb-37d1-4525-a4ef-2375d03563aa.svg)](https://insight.sensiolabs.com/projects/e660c560-9d50-43e3-9be1-e556ba78f189)
8+
[![Github All Releases](https://img.shields.io/github/downloads/pendo/pro6pp-php-wrapper/total.svg)](https://github.com/pendonl/laravel-fontawesome)
99

1010
The `PendoNL/pro6pp-php-wrapper` package provides an easy to use way to communicate with Pro6PP's API to fetch location based data such as addresses, coordinates, etc. Below you can find a list all methods.
1111

src/Pro6pp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public function distance($from_nl_fourpp, $to_nl_fourpp, $algorithm = 'road') {
141141
*
142142
* @return float
143143
*/
144-
public function coordinate_distance($lat1, $lng1, $lat2, $lng2, $miles = false)
144+
public function coordinatesDistance($lat1, $lng1, $lat2, $lng2, $miles = false)
145145
{
146146
$pi80 = M_PI / 180;
147147
$lat1 *= $pi80;

tests/Pro6ppTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function test_it_suggests() {
106106
public function test_it_calculates_distance_by_coordinates() {
107107
$Pro6pp = new Pro6pp('api_key');
108108

109-
$this->assertEquals(4.5435663553281715, $Pro6pp->coordinate_distance(50.858030, 5.717376, 50.840078, 5.659258));
109+
$this->assertEquals(4.5435663553281715, $Pro6pp->coordinatesDistance(50.858030, 5.717376, 50.840078, 5.659258));
110110
}
111111

112112
/**

0 commit comments

Comments
 (0)