willdurand/Geocoder — pull request #117 by ronanguilloux (2012-11-02 14:31:29+00:00)
Title: Add geo helpers

Hello again dear Geocoder's maintainers,

Here is a simple contribution, adding capacity to determine precisely a geopoint's coords, distant from an origin, using bearing angle & distance in km or miles.

This is usefull to everyone how need draw, say, a square latLongBounds region, 500km distant from its center. This can be done creating a bounding box around your origin with just two points (southWest & nortEast). Now, this two points can be determined using the new BoundingBoxHelper::getAngle() method, with the '500' & 'km' arguments.

The new classe is 100% tested via dedicated a phpunit's TestCase
[Tests passed without errors](https://travis-ci.org/#!/ronanguilloux/Geocoder/jobs/3032755)