Skip to content

dana-ross/boston-neighborhood-reverse-geocoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Determine which Boston neighborhood a lat/long point falls in

Resources

License

Stars

Watchers

Forks

Packages

No packages published