<commit_before># phpgeo - A Simple Geo Library for PHP

phpgeo provides abstractions to geographical coordinates (including support for different ellipsoids) and allows you to calculate geographical distances between coordinates with high precision.

<!-- MarkdownTOC autolink=true bracket=round depth=0 autoanchor=false -->

- [phpgeo - A Simple Geo Library for PHP](#phpgeo---a-simple-geo-library-for-php)
  - [Requirements](#requirements)
  - [Documentation](#documentation)
  - [Installation](#installation)
  - [License](#license)
  - [Features](#features)
  - [Examples/Usage](#examplesusage)
    - [Distance between two coordinates (Vincenty's Formula)](#distance-between-two-coordinates-vincentys-formula)
    - [Simplifying a polyline](#simplifying-a-polyline)
    - [Polygon contains a point (e.g. "GPS geofence")](#polygon-contains-a-point-eg-%22gps-geofence%22)
    - [Formatted output of coordinates](#formatted-output-of-coordinates)
      - [Decimal Degrees](#decimal-degrees)
      - [Degrees/Minutes/Seconds (DMS)](#degreesminutesseconds-dms)
      - [GeoJSON](#geojson)
  - [Development](#development)
    - [Run Tests](#run-tests)
  - [Miscellaneous](#miscellaneous)
  - [Credits](#credits)

<!-- /MarkdownTOC -->

## Requirements

Minimum required PHP version is 7.0.

## Documentation

The documentation is available at https://phpgeo.marcusjaschen.de/

API documentation is available as well: https://phpgeo.marcusjaschen.de/api/master

## Installation

Using [Composer](https://getcomposer.org), just add it to your `composer.json` by running:

```
composer require mjaschen/phpgeo
```
<commit_msg>update link to API docs<commit_after># phpgeo - A Simple Geo Library for PHP

phpgeo provides abstractions to geographical coordinates (including support for different ellipsoids) and allows you to calculate geographical distances between coordinates with high precision.

<!-- MarkdownTOC autolink=true bracket=round depth=0 autoanchor=false -->

- [phpgeo - A Simple Geo Library for PHP](#phpgeo---a-simple-geo-library-for-php)
  - [Requirements](#requirements)
  - [Documentation](#documentation)
  - [Installation](#installation)
  - [License](#license)
  - [Features](#features)
  - [Examples/Usage](#examplesusage)
    - [Distance between two coordinates (Vincenty's Formula)](#distance-between-two-coordinates-vincentys-formula)
    - [Simplifying a polyline](#simplifying-a-polyline)
    - [Polygon contains a point (e.g. "GPS geofence")](#polygon-contains-a-point-eg-%22gps-geofence%22)
    - [Formatted output of coordinates](#formatted-output-of-coordinates)
      - [Decimal Degrees](#decimal-degrees)
      - [Degrees/Minutes/Seconds (DMS)](#degreesminutesseconds-dms)
      - [GeoJSON](#geojson)
  - [Development](#development)
    - [Run Tests](#run-tests)
  - [Miscellaneous](#miscellaneous)
  - [Credits](#credits)

<!-- /MarkdownTOC -->

## Requirements

Minimum required PHP version is 7.0.

## Documentation

The documentation is available at https://phpgeo.marcusjaschen.de/

API documentation is available as well: https://phpgeo.marcusjaschen.de/api/

## Installation

Using [Composer](https://getcomposer.org), just add it to your `composer.json` by running:

```
composer require mjaschen/phpgeo
```

{'fraction_non_alphanumeric': 0.1361675908810844, 'fraction_numerical': 0.004313000616142945, 'mean_word_length': 4.512733446519524, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1929133', 'n_tokens_mistral': 1073, 'n_tokens_neox': 979, 'n_words': 234}