I am looking for the location of fire hydrants all over the US.
I'm particulalrly interested in Rhode Island, Massachusetts, Maine, New Hampshire.
-
openstreetmap.org may or may not have this information – user3856 Sep 20 '18 at 15:39
OSM (Open Street Map) has the tag fire_hydrant. You can use the overpass-turbo visual API to check coverage. Here's a sample query that will search for fire hydrants within the range of the viewable map to the right.
node
[emergency=fire_hydrant]
({{bbox}});
out;
You should use this tool to work on your search parameters.
Overpass-turbo API does have an export data feature, but I think you'll have too much data to use the browser tool. Therefore, once you figure out what you are searching for, you'll want to download bulk regions (start small to test your code).
Download the
latest
osm file from geofabrik:Convert the osm/pbf file to something, if needed, with osmconvert.
Use
osmfilter
orosmosis
to filter the bulk file for only the tags that you want, which can be based on your testing with the overpass-turbo API.Use one of many tools (e.g.
ogr2ogr
) to convert the osm file format to geojson, SQLite, CSV, Shapefiles, etc.
For Rhode Island, there are fire hydrants on RIGIS;