<commit_before>Geo
====

PHP 5.4+ library to make working with Geo coordinates safer, easier, and fun!

[![SensioLabsInsight](https://insight.sensiolabs.com/projects/e843341b-0a91-4aa8-a8a6-fbe2190d9724/big.png)](https://insight.sensiolabs.com/projects/e843341b-0a91-4aa8-a8a6-fbe2190d9724)

Installation
------------

The recommended way to install User is through [Composer][2]:

```json
{
    "require": {
        "black/geo": "@stable"
    }
}
```

__Protip:__ You should browse the [`black/geo`][7] user to choose a stable version to use, avoid the `@stable` meta
constraint.

Usage
-----

Usage of this class is simple. First, Geo coordinates are based on three values : latitude, longitude and elevation.
Elevation is not required and initialized to 0 if arguments are not provided.

There are three ways to create a Geo object:

```php
$geo = new Geo\Geo(37.42242, -122.08585, 0);
$geo->getCoordinates(); // will return "37.42242,-122.08585,0"
```

```php
Geo\Geo::fromCoordinatesAsString("37.42242, -122.08585, 0")
    ->getCoordinates(); // will return "37.42242,-122.08585,0"
```

```php
Geo\Geo::fromCoordinatesAsArray([37.42242, -122.08585, 0])
    ->getCoordinates(); // will return "37.42242,-122.08585,0"
```

__Getter__

List of available getters:

- `getLatitude()`
- `getLongitude()`
- `getElevation()`
- `getCoordinates()`
- `getCoordiantesAsArray()`

__Check if two geo are equals__

- `isEqualTo(Geo $geo)`

__Exception__
If you want to pass 1 or less OR 4 or more arguments, a `Geo\Exception\InvalidCoordinatesException` will be thrown.

License
-------

User is released under the MIT License. See the bundled LICENSE file for details.

Contributing
------------

See CONTRIBUTING file.

Credits<commit_msg>Can't wait the awesome pboreli for this typo<commit_after>Geo
====

PHP 5.4+ library to make working with Geo coordinates safer, easier, and fun!

[![SensioLabsInsight](https://insight.sensiolabs.com/projects/e843341b-0a91-4aa8-a8a6-fbe2190d9724/big.png)](https://insight.sensiolabs.com/projects/e843341b-0a91-4aa8-a8a6-fbe2190d9724)

Installation
------------

The recommended way to install User is through [Composer][2]:

```json
{
    "require": {
        "black/geo": "@stable"
    }
}
```

__Protip:__ You should browse the [`black/geo`][7] user to choose a stable version to use, avoid the `@stable` meta
constraint.

Usage
-----

Usage of this class is simple. First, Geo coordinates are based on three values : latitude, longitude and elevation.
Elevation is not required and initialized to 0 if arguments are not provided.

There are three ways to create a Geo object:

```php
$geo = new Geo\Geo(37.42242, -122.08585, 0);
$geo->getCoordinates(); // will return "37.42242,-122.08585,0"
```

```php
Geo\Geo::fromCoordinatesAsString("37.42242,-122.08585,0")
    ->getLatitude(); // will return "37.42242"
```

```php
Geo\Geo::fromCoordinatesAsArray([37.42242, -122.08585, 0])
    ->getCoordinates(); // will return "37.42242,-122.08585,0"
```

__Getter__

List of available getters:

- `getLatitude()`
- `getLongitude()`
- `getElevation()`
- `getCoordinates()`
- `getCoordinatesAsArray()`

__Check if two geo are equals__

- `isEqualTo(Geo $geo)`

__Exception__

If you want to pass 1 or less OR 4 or more arguments, a `Geo\Exception\InvalidCoordinatesException` will be thrown.

License
-------

User is released under the MIT License. See the bundled LICENSE file for details.

Contributing
------------

See CONTRIBUTING file.

Credits
{'fraction_non_alphanumeric': 0.1504602991944764, 'fraction_numerical': 0.08084004602991945, 'mean_word_length': 3.945945945945946, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1901476', 'n_tokens_mistral': 1397, 'n_tokens_neox': 1190, 'n_words': 348}