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 geographic and real time data from Portland, OR. Most of the data originates from CivicApps, the regional Portland area open data initiative.

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 resource (bicycle lock rack locations):

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

API

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

You must specify the resource (dataset name), datatype (geojson or feed, depending on the 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 a library that supports JSON, such as jQuery.

The real time feeds available through PDX API are published in the ActivityStreams JSON format.

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.

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:

realtime feed datasets

              pdx911
              city-council-agenda
              liquor-license-applications
            

geojson datasets

              bicycle_network
              bicycle_parking
              bridges
              business_associations
              buslines
              busstops
              cities
              cityhall
              co_fill
              council
              counties
              cty_fill
              curb_ramps
              day_street_sweeping
              development_opp_areas
              enterprise_ecommerce_zone
              fire_sta
              food_carts
              freight_districts
              freight_facilities
              guardrails
              hauler
              heritage_trees
              homebuyer_opp_area
              hospital
              inspected_restaurants
              intermodal_facilities
              its_cameras
              its_signs
              leaf_pickup
              library
              lid_boundaries
              lid_streets
              lrt_line
              lrt_stop
              nbo_hood
              neighborhoods
              night_street_sweeping
              parking_meters
              parkride
              parks
              parks_desired_fut_cond
              parks_easements
              parks_taxlots
              parks_trails
              parks_vegetation_survey
              pavement_moratorium
              pedestrian_districts
              public_art
              schools
              sidewalks
              signage_lighting_imp_prog
              snow_ice_routes
              storefront_improvement_areas
              street_contract_jobs
              street_permit_jobs_line
              streets_permit_jobs_point
              streets_permit_jobs_polygon
              traffic_calming
              traffic_signals
              tran_cen
              transit_district
              transit_stations
              tsp_district_boundaries
              urban_renewal_area
              vegetation
              watershed
              wellheadprotarea
              zipcode
              zipcodes