@@ -54,20 +54,15 @@ The recommended way to install **Geotools** is through [composer](http://getcomp
5454Run 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
6662And install dependencies:
6763
68- ``` bash
69- $ curl -sS https://getcomposer.org/installer | php
70- $ php composer.phar install
64+ ```
65+ composer install
7166```
7267
7368Now you can add the autoloader, and you will have access to the library:
@@ -82,7 +77,7 @@ require 'vendor/autoload.php';
8277Usage & API
8378-----------
8479
85- ## Coordinate & Ellipsoid ##
80+ ## Coordinate & Ellipsoid
8681
8782The default geodetic datum is [ WGS84] ( http://en.wikipedia.org/wiki/World_Geodetic_System ) and coordinates are in
8883decimal degrees.
@@ -150,7 +145,7 @@ printf("Latitude: %F\n", $coordinate->getLatitude()); // 40.446388888889
150145printf("Longitude: %F\n", $coordinate->getLongitude()); // -79.976666666667
151146```
152147
153- ## Convert ##
148+ ## Convert
154149
155150It provides methods (and aliases) to convert * decimal degrees* WGS84 coordinates to * degrees minutes seconds*
156151or * decimal minutes* WGS84 coordinates. You can format the output string easily.
@@ -189,7 +184,7 @@ Degrees | `%D` | `%d`
189184Minutes | ` %M ` | ` %m `
190185Seconds | ` %S ` | ` %s `
191186
192- ## Batch ##
187+ ## Batch
193188
194189It provides a very handy way to batch geocode and reverse geocoding requests in * serie* or in * parallel* against
195190a 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),
309304please read more at the [ Geocoder library doc] ( https://github.com/willdurand/Geocoder#freegeoipprovider ) .
310305
311- ## Distance ##
306+ ## Distance
312307
313308It provides methods to compute the distance in * meter* (by default), * km* , * mi* or * ft* between two coordinates
314309using * flat* (most performant), * great circle* , * haversine* or * vincenty* (most accurate) algorithms.
@@ -330,7 +325,7 @@ printf("%s\n",$distance->in('mi')->vincenty()); // 409.05330679648
330325printf("%s\n",$distance->in('ft')->flat()); // 2162619.7519272
331326```
332327
333- ## Point ##
328+ ## Point
334329
335330It provides methods to compute the initial and final * bearing* in degrees, the initial and final * cardinal direction* ,
336331the * 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
358353printf("%s\n", $destinationPoint->getLongitude()); // 2.3072664
359354```
360355
361-
362- ## Geohash ##
356+ ## Geohash
363357
364358It provides methods to get the * geo hash* and its * bounding box's coordinates* (SouthWest & NorthEast)
365359of 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
432426Represent a location with 10m accuracy using a 10 character code that includes features to prevent errors in
433427entering 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
444438Represents a segment with a direction.
445439You 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
459453It helps you to know if a point (coordinate) is in a Polygon or on the Polygon's boundaries and if this in on
460454a 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
489483It provides command lines to compute methods provided by ** Distance** , ** Point** , ** Geohash** and ** Convert** classes.
490484Thanks to the [ Symfony Console Component] ( https://github.com/symfony/Console ) .
0 commit comments