Determine which Boston neighborhood a lat/long point falls in
PHP JavaScript
Permalink
Failed to load latest commit information.
src
tests/php
.gitignore
.travis.yml
Gruntfile.js
LICENSE
README.md
composer.json
package.json
phpunit.xml

README.md

Boston Neighborhood Reverse Geocoder

Latest Stable Version License Build Status

Determines which Boston neighborhood a lat/long point falls in, and does it wicked fast without calling out to an external API.

Installing

With Composer Total Downloads

composer require daveross/boston-neighborhood-reverse-geocoder:~1.0.0

or add the dependency to your composer.json file manually:

"require": {
    "php": ">=5.3",
    "daveross/daveross/boston-neighborhood-reverse-geocoder": "~1.0.0"
}

Without Composer

Copy this library's files to wherever you put third-party libraries in your application. Include src/boston_neighborhoods.php from this library.

License

MIT

See why I contribute to open source software.

Examples

echo 'Boston City Hall is in ' . \DaveRoss\BostonNeighborhoodReverseGeocoder\get_neighborhood( -71.0580, 42.3603 ) . "\n";
echo 'Massachusetts General Hospital is in ' . \DaveRoss\BostonNeighborhoodReverseGeocoder\get_neighborhood( -71.0686, 42.3628 ) . "\n";
echo 'Faneuil Hall is in ' . \DaveRoss\BostonNeighborhoodReverseGeocoder\get_neighborhood( -71.0568, 42.3600 ) . "\n";

Thanks

Data from Boston Neighborhood Map by Cosmo Catalano