BaltAPI updates

14 views
Skip to first unread message

Mark Headd

unread,
Feb 15, 2011, 7:22:29 PM2/15/11
to civic-h...@googlegroups.com
I've gone ahead and updated the BaltAPI site with the new shapefile data that was loaded into the Open Baltimore portal last week.  Everything should work the same as it did before, there are just more data sets to query now.  The following data sets are currently loaded into the GeoCouch instance running on the BaltAPI site:
  1. Public Schools
  2. Senior Centers
  3. Recreation Centers
  4. Pools
  5. Police Stations
  6. Fire Stations
  7. Museums
  8. Farmers Markets
  9. Libraries
  10. Designated Landmarks
  11. Hospitals
  12. City Markets
Querying the data sets is easy, just make an HTTP request (GET method) with a URL following the convention below (these bounding box coordinates will return all records in the data set):

http://baltapi.com:5984/city_markets/_design/geojson/_spatial/points?bbox=-180,-90,180,90

Will return the following JSON:

{"update_seq":8,"rows":[
{"id":"0940900efc848893e03588684c003cd9","bbox":[-76.635491,39.303948,-76.635491,39.303948],"value":{"id":"0940900efc848893e03588684c003cd9","geometry":{"type":"Point","coordinates":[-76.635491,39.303948]},"properties":{"OBJECTID_1":0,"XOBJECTID":0,"ADDRESS":"1700 Pennsylvania Ave","CITY":"Baltimore","STATE":"MD","ZIPCODE":"21217","X_COORD":1415482.08294,"Y_COORD":596493.248432,"NAME":"Avenue Market","ALIAS1":"Lafayette Market","NGHBRHD":"Upton","CNTCT_NME":"","CNTCT_PHN":""}}},
{"id":"0940900efc848893e03588684c004a66","bbox":[-76.593333,39.283415,-76.593333,39.283415],"value":{"id":"0940900efc848893e03588684c004a66","geometry":{"type":"Point","coordinates":[-76.593333,39.283415]},"properties":{"OBJECTID_1":0,"XOBJECTID":0,"ADDRESS":"1640 Aliceanna St","CITY":"Baltimore","STATE":"MD","ZIPCODE":"21231","X_COORD":1427444.98584,"Y_COORD":589064.956721,"NAME":"Broadway Market","ALIAS1":"","NGHBRHD":"Fells Point","CNTCT_NME":"","CNTCT_PHN":""}}},
{"id":"0940900efc848893e03588684c0057de","bbox":[-76.614135,39.276727,-76.614135,39.276727],"value":{"id":"0940900efc848893e03588684c0057de","geometry":{"type":"Point","coordinates":[-76.614135,39.276727]},"properties":{"OBJECTID_1":0,"XOBJECTID":0,"ADDRESS":"1065 S. Charles St","CITY":"Baltimore","STATE":"MD","ZIPCODE":"21230","X_COORD":1421567.28691,"Y_COORD":586603.539705,"NAME":"Cross Street Market","ALIAS1":"","NGHBRHD":"Federal Hill","CNTCT_NME":"","CNTCT_PHN":""}}},
{"id":"0940900efc848893e03588684c005e9c","bbox":[-76.636341,39.287499,-76.636341,39.287499],"value":{"id":"0940900efc848893e03588684c005e9c","geometry":{"type":"Point","coordinates":[-76.636341,39.287499]},"properties":{"OBJECTID_1":0,"XOBJECTID":0,"ADDRESS":"26 S. Arlington Ave","CITY":"Baltimore","STATE":"MD","ZIPCODE":"21223","X_COORD":1415265.31464,"Y_COORD":590500.999736,"NAME":"Hollins Market","ALIAS1":"","NGHBRHD":"Hollins Market","CNTCT_NME":"","CNTCT_PHN":""}}},
{"id":"0940900efc848893e03588684c00676c","bbox":[-76.587554,39.29849,-76.587554,39.29849],"value":{"id":"0940900efc848893e03588684c00676c","geometry":{"type":"Point","coordinates":[-76.587554,39.29849]},"properties":{"OBJECTID_1":0,"XOBJECTID":0,"ADDRESS":"2101 E. Monument St","CITY":"Baltimore","STATE":"MD","ZIPCODE":"21205","X_COORD":1429056.154,"Y_COORD":594563.088619,"NAME":"Northeast Market","ALIAS1":"","NGHBRHD":"Middle East","CNTCT_NME":"","CNTCT_PHN":""}}},
{"id":"0940900efc848893e03588684c006bc7","bbox":[-76.62302,39.291948,-76.62302,39.291948],"value":{"id":"0940900efc848893e03588684c006bc7","geometry":{"type":"Point","coordinates":[-76.62302,39.291948]},"properties":{"OBJECTID_1":0,"XOBJECTID":0,"ADDRESS":"400 W. Lexington St","CITY":"Baltimore","STATE":"MD","ZIPCODE":"21201","X_COORD":1419028.95452,"Y_COORD":592136.893761,"NAME":"Lexington Market","ALIAS1":"","NGHBRHD":"Downtown","CNTCT_NME":"","CNTCT_PHN":""}}}
]}

Hope folks fin this helpful. Please ping me with any questions or issues.

Cheers,

Mark
Reply all
Reply to author
Forward
0 new messages