Finding open data sets containing detailed shapefiles representing low-level geographic regions (i.e. suburbs, neighbourhoods, etc.) is exceedingly difficult. There are several companies that house this kind of data including Navteq, UrbanMapping, Yahoo!, etc. however they are hidden behind pay APIs or expensive data downloads. Furthermore, they are often simple bounding boxes and not real shapes. SimpleGeo has recently started building international neighbourhood shape files, but this is a work in progress and only covers 12 major cities. The US, Canada, UK, etc. have good local coverage from places like Zillow and various government sources, however there is still significant leg work required to assemble the data in any sensible way.
This tiny project is an attempt to bring together various shapefiles and data sources to provide a decent reverse geocoder down to the neighbourhood level. All of the data is "open" in that it is free for use, however in some cases it requires attribution. Living up to the licenses for all of the data used is your responsibility!
To download and build the datasets:
To build and run the service:
Optional:
- QGIS to view the shapefiles being used
- download raw data:
sbin/downloadData.sh
- build data to be used by the indexer:
sbin/buildData.sh
- build services: sbt
- run service: TBD
- Natural Earth
- Flickr Shapefiles Public Dataset 2.0 (details)
- counties (Admin Level 2)
- locality (city/town)
- neighbourhoods
- SimpleGeo International Neighbourhoods 2011-08-04 (details)
- Yahoo! GeoPlanet™ Data 7.6.0 (details)
- Natural Earth: Made with Natural Earth. Free vector and raster map data @ naturalearthdata.com
- Flickr Shapefiles Public Dataset 2.0: Creative Commons Zero Waiver
- SimpleGeo International Neighbourhoods: Open Database License (ODbL)
- Yahoo! GeoPlanet™ Data 7.6.0: Creative Commons Attribution
Copyright (C) 2012 Josh Devins
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.