view larger

PDX API

Drag the map around to explore bike rack locations
#

Follow me on twitter if you want to stay up to date: @maxogden

PDXAPI is a JSON API that provides access to data from CivicApps, the open data initiative by the City of Portland.

Much of the data on CivicApps is in a very raw and hard to use form. PDX API exists to filter the data from CivicApps and provide it in the easiest way possible to application developers wanting to consume the data.

Example

JQuery JSONP request to the bicycle_parking_pdx resource (bicycle lock rack locations):

          $.ajax({
            url: "http://www.pdxapi.com/bicycle_parking_pdx",
            dataType: 'jsonp',
            data: {
              "bbox":"-122.6785969,45.5167974,-122.6763439,45.51772964"
            },
            success: function(data){
              // manipulate data
            }
          });
#

API

pdxapi.com/resource?bbox=x0,y0,x1,y1

You must specify the resource (dataset) and supply a bounding box. The bounding box pair, x and y, represent the lower left and upper right points of the bounding box, respectively.

You’ll need to request the data using library that supports JSONP, such as jQuery.

PDXAPI is powered by GeoCouch, a spatial index enabled flavor of CouchDB. This means that every piece of data in PDXAPI is accessible and editable through a REST-like interface.

I am in the process of creating example client applications that take advantage of the full capabilities of the platform; the eye candy at the top of this page is just a teaser.

Want to help out? Fork the project on Github or contact me if you are interested.

Datasets

Launch the dataset previewer

Datasets currently available through PDX API:

            bicycle_parking_pdx
            bridges_pdx
            buslines
            busstops
            cities
            cityhall
            co_fill
            council
            counties_pdx
            cty_fill
            curb_ramps_pdx
            day_street_sweeping_pdx
            development_opp_areas_pdx
            enterprise_ecommerce_zone_pdx
            fire_sta
            food_carts
            freight_districts_pdx
            freight_facilities_pdx
            guardrails_pdx
            hauler
            heritage_trees_pdx
            homebuyer_opp_area_pdx
            hospital
            inspected_restaurants
            intermodal_facilities_pdx
            its_cameras_pdx
            its_signs_pdx
            leaf_pickup_pdx
            library
            lid_boundaries_pdx
            lid_streets_pdx
            lrt_line
            lrt_stop
            nbo_hood
            neighborhoods_pdx
            night_street_sweeping_pdx
            parking_meters_pdx
            parkride
            parks_desired_fut_cond_pdx
            parks_easements_pdx
            parks_pdx
            parks_taxlots_pdx
            parks_trails_pdx
            parks_vegetation_survey_pdx
            pavement_moratorium_pdx
            pedestrian_districts_pdx
            schools
            signage_lighting_imp_prog_pdx
            snow_ice_routes_pdx
            storefront_improvement_areas_pdx
            street_contract_jobs_pdx
            street_permit_jobs_line_pdx
            streets_permit_jobs_point_pdx
            streets_permit_jobs_polygon_pdx
            traffic_calming_pdx
            traffic_signals_pdx
            tran_cen
            transit_district
            transit_stations_pdx
            tsp_district_boundaries_pdx
            vegetation_pdx
            watershed_pdx
            wellheadprotarea_pdx
            zipcodes_pdx