Skip to content

Commit 96055a8

Browse files
committed
updated README.md
1 parent 4a9829c commit 96055a8

File tree

2 files changed

+21
-19
lines changed

2 files changed

+21
-19
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
CHANGELOG
22
=========
33

4+
1.2.0
5+
-----
6+
### Fixed
7+
8+
- PHP 8.2 CI support by @phpfui in #184
9+
- Add support for Symfony 7/Laravel 11 by @dwightwatson in #188
10+
- OpenStreetMap typo fixed #187. by @Surfoo in #189
11+
- Ability to receive codes of neighboring points by @OleksandrWebLab in #185
412

513
1.1.0
614
-----

README.md

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -54,20 +54,15 @@ The recommended way to install **Geotools** is through [composer](http://getcomp
5454
Run the following on the command line:
5555

5656
```
57-
php composer require league/geotools=@stable
57+
composer require league/geotools
5858
```
5959

60-
**Protip:** you should browse the
61-
[`league/geotools`](https://packagist.org/packages/league/geotools)
62-
page to choose a stable version to use, avoid the `@stable` meta constraint.
63-
6460
**Important:** you should use the `0.4` version if you use Geocoder `2.x` or/and PHP `5.3`.
6561

6662
And install dependencies:
6763

68-
```bash
69-
$ curl -sS https://getcomposer.org/installer | php
70-
$ php composer.phar install
64+
```
65+
composer install
7166
```
7267

7368
Now you can add the autoloader, and you will have access to the library:
@@ -82,7 +77,7 @@ require 'vendor/autoload.php';
8277
Usage & API
8378
-----------
8479

85-
## Coordinate & Ellipsoid ##
80+
## Coordinate & Ellipsoid
8681

8782
The default geodetic datum is [WGS84](http://en.wikipedia.org/wiki/World_Geodetic_System) and coordinates are in
8883
decimal degrees.
@@ -150,7 +145,7 @@ printf("Latitude: %F\n", $coordinate->getLatitude()); // 40.446388888889
150145
printf("Longitude: %F\n", $coordinate->getLongitude()); // -79.976666666667
151146
```
152147

153-
## Convert ##
148+
## Convert
154149

155150
It provides methods (and aliases) to convert *decimal degrees* WGS84 coordinates to *degrees minutes seconds*
156151
or *decimal minutes* WGS84 coordinates. You can format the output string easily.
@@ -189,7 +184,7 @@ Degrees | `%D` | `%d`
189184
Minutes | `%M` | `%m`
190185
Seconds | `%S` | `%s`
191186

192-
## Batch ##
187+
## Batch
193188

194189
It provides a very handy way to batch geocode and reverse geocoding requests in *serie* or in *parallel* against
195190
a set of providers.
@@ -308,7 +303,7 @@ To optimize batch requests you need to register providers according to their **c
308303
**looking for** (geocode street addresses, geocode IPv4, geocode IPv6 or reverse geocoding),
309304
please read more at the [Geocoder library doc](https://github.com/willdurand/Geocoder#freegeoipprovider).
310305

311-
## Distance ##
306+
## Distance
312307

313308
It provides methods to compute the distance in *meter* (by default), *km*, *mi* or *ft* between two coordinates
314309
using *flat* (most performant), *great circle*, *haversine* or *vincenty* (most accurate) algorithms.
@@ -330,7 +325,7 @@ printf("%s\n",$distance->in('mi')->vincenty()); // 409.05330679648
330325
printf("%s\n",$distance->in('ft')->flat()); // 2162619.7519272
331326
```
332327

333-
## Point ##
328+
## Point
334329

335330
It provides methods to compute the initial and final *bearing* in degrees, the initial and final *cardinal direction*,
336331
the *middle point* and the *destination point*. The middle and the destination points returns a
@@ -358,8 +353,7 @@ printf("%s\n", $destinationPoint->getLatitude()); // 47.026774650075
358353
printf("%s\n", $destinationPoint->getLongitude()); // 2.3072664
359354
```
360355

361-
362-
## Geohash ##
356+
## Geohash
363357

364358
It provides methods to get the *geo hash* and its *bounding box's coordinates* (SouthWest & NorthEast)
365359
of a coordinate and the *coordinate* and its *bounding box's coordinates* (SouthWest & NorthEast) of a geo hash.
@@ -427,7 +421,7 @@ print_r($decoded->getNeighbors(true));
427421
*/
428422
```
429423

430-
## 10:10 ##
424+
## 10:10
431425

432426
Represent a location with 10m accuracy using a 10 character code that includes features to prevent errors in
433427
entering the code. Read more about the algorithm [here](http://blog.jgc.org/2006/07/simple-code-for-entering-latitude-and.html).
@@ -439,7 +433,7 @@ $tenten = new \League\Geotools\Tests\Geohash\TenTen;
439433
$tenten->encode(new Coordinate([51.09559, 1.12207])); // MEQ N6G 7NY5
440434
```
441435

442-
## Vertex ##
436+
## Vertex
443437

444438
Represents a segment with a direction.
445439
You can find if two vertexes are on the same line.
@@ -454,7 +448,7 @@ You can find if two vertexes are on the same line.
454448
$vertexA->isOnSameLine($vertexB);
455449
```
456450

457-
## Polygon ##
451+
## Polygon
458452

459453
It helps you to know if a point (coordinate) is in a Polygon or on the Polygon's boundaries and if this in on
460454
a Polygon's vertex.
@@ -484,7 +478,7 @@ $polygon->pointOnVertex(new \League\Geotools\Coordinate\Coordinate([49.1785607,
484478
$polygon->getBoundingBox(); // return the BoundingBox object
485479
```
486480

487-
## CLI ##
481+
## CLI
488482

489483
It provides command lines to compute methods provided by **Distance**, **Point**, **Geohash** and **Convert** classes.
490484
Thanks to the [Symfony Console Component](https://github.com/symfony/Console).

0 commit comments

Comments
 (0)