daveross / boston-neighborhood-reverse-geocoder
Determine which Boston neighborhood a lat/long point falls in
1.0.0
2015-06-01 13:40 UTC
Requires
- php: >=5.3
Requires (Dev)
- phpunit/phpunit: ~3.7.10
This package is not auto-updated.
Last update: 2024-10-26 18:54:34 UTC
README
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
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
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