Created
December 5, 2011 14:33
-
-
Save mheadd/1433757 to your computer and use it in GitHub Desktop.
Sample ASP.NET web page displaying Open311 services in Baltimore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Web.UI; | |
| using Open311API; | |
| using Open311API.Structs; | |
| namespace WebSample | |
| { | |
| public partial class _Default : Page | |
| { | |
| // The development endpoint for the Baltimore City Open311 API. | |
| const string ENDPOINT = "http://311test.baltimorecity.gov/open311/v2/"; | |
| // The jurisdiction ID for Baltimore. | |
| const string JURISDICTION_ID = "baltimorecity.gov"; | |
| protected void Page_Load(object sender, EventArgs e) | |
| { | |
| Open311 open311 = new Open311(ENDPOINT, JURISDICTION_ID); | |
| string servicesList = open311.GetServiceList(ResponseFormat.XML); | |
| Response.Write(servicesList); | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [{"service_code":"4e39a3abd3e2c20ed8000021","service_name":"Sign Missing or Damaged","metadata":true,"type":"batch","group":"Signs, Signals, & Parking"},{"service_code":"4e4edcac21ecf30e5000000f","service_name":"City Employee Praise","metadata":true,"type":"batch","group":"City Employee Feedback"},{"service_code":"4e39a3aad3e2c20ed800000c","service_name":"Graffiti Removal","metadata":true,"type":"batch","group":"Trash & Unsightliness"},{"service_code":"4e39a3abd3e2c20ed8000016","service_name":"Pothole","description":"Use this SR to report a pothole on a public street or alley. The City will repair most potholes within 48 hours.","metadata":true,"type":"batch","group":"Streets & Street Lights"},{"service_code":"4ea95a0021ecf338c3000045","service_name":"Rat Rubout","metadata":true,"type":"batch","group":"Miscellaneous"},{"service_code":"4e39a3aad3e2c20ed800000a","service_name":"Dirty Alley or Street","metadata":true,"type":"batch","group":"Trash & Unsightliness"},{"service_code":"4e39a3aad3e2c20ed8000007","service_name":"City Employee Complaint","metadata":true,"type":"batch","group":"City Employee Feedback"},{"service_code":"4e39a3abd3e2c20ed800001a","service_name":"Street Light Out","description":"Use this SR to report a streetlight outage. Streetlights are maintained by either the City or BG&E. The City will repair or coordinate the repair of all public street lights.","metadata":true,"type":"batch","group":"Streets & Street Lights"},{"service_code":"4e39a3abd3e2c20ed8000023","service_name":"Traffic Signal Repair","description":"Use this SR to request repairs to a traffic or pedestrian signal at a signalized intersection. A technician will be dispatched to investigate and repair the signal problem. Please enter location using street names of the intersection. (I.E. Pratt and Light; Gay and Fayette) \u00a0IF THE SIGNAL IS FLASHING OR NOT FUNCTIONING AT ALL, CALL 311 TO REPORT AN EMERGENCY SITUATION!","metadata":true,"type":"batch","group":"Signs, Signals, & Parking"},{"service_code":"4e39a3aad3e2c20ed800000e","service_name":"Park Cleaning or Mowing","metadata":true,"type":"batch","group":"Trash & Unsightliness"},{"service_code":"4e39a3abd3e2c20ed800001d","service_name":"Abandoned Vehicle","metadata":true,"type":"batch","group":"Signs, Signals, & Parking"},{"service_code":"4e39a3abd3e2c20ed8000025","service_name":"Aggressive Animal","metadata":true,"type":"batch","group":"Miscellaneous"},{"service_code":"4e39a3abd3e2c20ed8000013","service_name":"Damaged Sidewalk","description":"Use this SR to request a repair to a footway/sidewalk on a city street - (The footway may be broken, cracked, or chipped.) After assessing the problem, the City will perform necessary repairs to make it safe. A violation notice may be issued if property is privately owned; the resident or business owner would either repair footway/sidewalk or pay the city to perform the work.","metadata":true,"type":"batch","group":"Streets & Street Lights"},{"service_code":"4e39a3abd3e2c20ed8000014","service_name":"Downed Tree or Limb","description":"Use this SR to report a downed tree or limb on footway or street","metadata":true,"type":"batch","group":"Streets & Street Lights"},{"service_code":"4ea95a0021ecf338c300001a","service_name":"Recycling","metadata":true,"type":"batch","group":"Trash & Unsightliness"},{"service_code":"4e5cc7fa21ecf3213900003a","service_name":"Parking Complaint","metadata":true,"type":"batch","group":"Signs, Signals, & Parking"},{"service_code":"4e39a3abd3e2c20ed8000026","service_name":"Dead Animal Pickup","description":"Use this SR to report and request the removal of a dead animal from the public right-of-way or private property. The City will remove the dead animal.","metadata":true,"type":"batch","group":"Miscellaneous"},{"service_code":"4e39a3abd3e2c20ed8000010","service_name":"Trash, High Grass, or Weeds","metadata":true,"type":"batch","group":"Trash & Unsightliness"},{"service_code":"4e39a3abd3e2c20ed8000027","service_name":"Food Facility Complaint","description":"Use this SR to report a complaint regarding a restaurant, grocery store, cart, or other food service facility. A Health Department sanitarian will be assigned to investigate the complaint. The sanitarian performs an inspection of the facility before determining the final disposition. In some cases the facility operator may be given a citation and/or the facility may be shut down.","metadata":true,"type":"batch","group":"Miscellaneous"},{"service_code":"4e39a3abd3e2c20ed8000019","service_name":"Flooded Street","description":"","metadata":false,"type":"batch","group":"Streets & Street Lights"},{"service_code":"4e39a3abd3e2c20ed8000017","service_name":"Storm Drain or Inlet","metadata":true,"type":"batch","group":"Streets & Street Lights"},{"service_code":"4e39a3abd3e2c20ed8000029","service_name":"Other","metadata":false,"type":"batch","group":"Miscellaneous"},{"service_code":"4e39a3abd3e2c20ed800001b","service_name":"Water Leak (Exterior)","description":"Use this SR to report a water leak in the street or sidewalk. The City will investigate and make the required repairs.","metadata":true,"type":"batch","group":"Streets & Street Lights"}] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| -<services> -<service> <service_code>4e39a3abd3e2c20ed8000021</service_code> <service_name>Sign Missing or Damaged</service_name> <metadata>true</metadata> <type>batch</type> <group>Signs, Signals, & Parking</group> </service> -<service> <service_code>4e4edcac21ecf30e5000000f</service_code> <service_name>City Employee Praise</service_name> <metadata>true</metadata> <type>batch</type> <group>City Employee Feedback</group> </service> -<service> <service_code>4e39a3aad3e2c20ed800000c</service_code> <service_name>Graffiti Removal</service_name> <metadata>true</metadata> <type>batch</type> <group>Trash & Unsightliness</group> </service> -<service> <service_code>4e39a3abd3e2c20ed8000016</service_code> <service_name>Pothole</service_name> <description>Use this SR to report a pothole on a public street or alley. The City will repair most potholes within 48 hours.</description> <metadata>true</metadata> <type>batch</type> <group>Streets & Street Lights</group> </service> -<service> <service_code>4ea95a0021ecf338c3000045</service_code> <service_name>Rat Rubout</service_name> <metadata>true</metadata> <type>batch</type> <group>Miscellaneous</group> </service> -<service> <service_code>4e39a3aad3e2c20ed800000a</service_code> <service_name>Dirty Alley or Street</service_name> <metadata>true</metadata> <type>batch</type> <group>Trash & Unsightliness</group> </service> -<service> <service_code>4e39a3aad3e2c20ed8000007</service_code> <service_name>City Employee Complaint</service_name> <metadata>true</metadata> <type>batch</type> <group>City Employee Feedback</group> </service> -<service> <service_code>4e39a3abd3e2c20ed800001a</service_code> <service_name>Street Light Out</service_name> <description>Use this SR to report a streetlight outage. Streetlights are maintained by either the City or BG&E. The City will repair or coordinate the repair of all public street lights.</description> <metadata>true</metadata> <type>batch</type> <group>Streets & Street Lights</group> </service> -<service> <service_code>4e39a3abd3e2c20ed8000023</service_code> <service_name>Traffic Signal Repair</service_name> <description>Use this SR to request repairs to a traffic or pedestrian signal at a signalized intersection. A technician will be dispatched to investigate and repair the signal problem. Please enter location using street names of the intersection. (I.E. Pratt and Light; Gay and Fayette) IF THE SIGNAL IS FLASHING OR NOT FUNCTIONING AT ALL, CALL 311 TO REPORT AN EMERGENCY SITUATION!</description> <metadata>true</metadata> <type>batch</type> <group>Signs, Signals, & Parking</group> </service> -<service> <service_code>4e39a3aad3e2c20ed800000e</service_code> <service_name>Park Cleaning or Mowing</service_name> <metadata>true</metadata> <type>batch</type> <group>Trash & Unsightliness</group> </service> -<service> <service_code>4e39a3abd3e2c20ed800001d</service_code> <service_name>Abandoned Vehicle</service_name> <metadata>true</metadata> <type>batch</type> <group>Signs, Signals, & Parking</group> </service> -<service> <service_code>4e39a3abd3e2c20ed8000025</service_code> <service_name>Aggressive Animal</service_name> <metadata>true</metadata> <type>batch</type> <group>Miscellaneous</group> </service> -<service> <service_code>4e39a3abd3e2c20ed8000013</service_code> <service_name>Damaged Sidewalk</service_name> <description>Use this SR to request a repair to a footway/sidewalk on a city street - (The footway may be broken, cracked, or chipped.) After assessing the problem, the City will perform necessary repairs to make it safe. A violation notice may be issued if property is privately owned; the resident or business owner would either repair footway/sidewalk or pay the city to perform the work.</description> <metadata>true</metadata> <type>batch</type> <group>Streets & Street Lights</group> </service> -<service> <service_code>4e39a3abd3e2c20ed8000014</service_code> <service_name>Downed Tree or Limb</service_name> <description>Use this SR to report a downed tree or limb on footway or street</description> <metadata>true</metadata> <type>batch</type> <group>Streets & Street Lights</group> </service> -<service> <service_code>4ea95a0021ecf338c300001a</service_code> <service_name>Recycling</service_name> <metadata>true</metadata> <type>batch</type> <group>Trash & Unsightliness</group> </service> -<service> <service_code>4e5cc7fa21ecf3213900003a</service_code> <service_name>Parking Complaint</service_name> <metadata>true</metadata> <type>batch</type> <group>Signs, Signals, & Parking</group> </service> -<service> <service_code>4e39a3abd3e2c20ed8000026</service_code> <service_name>Dead Animal Pickup</service_name> <description>Use this SR to report and request the removal of a dead animal from the public right-of-way or private property. The City will remove the dead animal.</description> <metadata>true</metadata> <type>batch</type> <group>Miscellaneous</group> </service> -<service> <service_code>4e39a3abd3e2c20ed8000010</service_code> <service_name>Trash, High Grass, or Weeds</service_name> <metadata>true</metadata> <type>batch</type> <group>Trash & Unsightliness</group> </service> -<service> <service_code>4e39a3abd3e2c20ed8000027</service_code> <service_name>Food Facility Complaint</service_name> <description>Use this SR to report a complaint regarding a restaurant, grocery store, cart, or other food service facility. A Health Department sanitarian will be assigned to investigate the complaint. The sanitarian performs an inspection of the facility before determining the final disposition. In some cases the facility operator may be given a citation and/or the facility may be shut down.</description> <metadata>true</metadata> <type>batch</type> <group>Miscellaneous</group> </service> -<service> <service_code>4e39a3abd3e2c20ed8000019</service_code> <service_name>Flooded Street</service_name> <description/> <type>batch</type> <group>Streets & Street Lights</group> </service> -<service> <service_code>4e39a3abd3e2c20ed8000017</service_code> <service_name>Storm Drain or Inlet</service_name> <metadata>true</metadata> <type>batch</type> <group>Streets & Street Lights</group> </service> -<service> <service_code>4e39a3abd3e2c20ed8000029</service_code> <service_name>Other</service_name> <type>batch</type> <group>Miscellaneous</group> </service> -<service> <service_code>4e39a3abd3e2c20ed800001b</service_code> <service_name>Water Leak (Exterior)</service_name> <description>Use this SR to report a water leak in the street or sidewalk. The City will investigate and make the required repairs.</description> <metadata>true</metadata> <type>batch</type> <group>Streets & Street Lights</group> </service> </services> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment