Category: Information

How to geocode a single address in QGIS

Since the last time I wrote about how to use BatchGeocode.com to perform pseudo-geocoding tasks in QGIS, there have been considerable improvements in the multi-platform, free, and open source GIS software. Now, geocoding (turning addresses into coordinates) is more automatic, albeit difficult to setup. (Okay, this has been around June 2009 and I just found out about it in October 2010.)

Once you install all the components, you’ll never have to do this again.

This method can only geocode one address at a time, but it will geocode all of the addresses into a single shapefile.

  1. Download QGIS.
  2. Download and install Python SetupTools. This includes the easy_install function that will download a necessary Python script, simplejson. On Mac you will have to use the Terminal (Applications>Utilities). Email me if you run into problems.
  3. Install simplejson. In the command line (Terminal for Mac; in Windows press Start>Run>”cmd”>Enter), type “easy_install simplejson”.
  4. Download the GeoCode plugin by Alessandro Pasotti via QGIS>Plugins>Fetch Python Plugins. You may have to load additional repositories to see it.
  5. Install geopy. In the command line (like step 3), type “easy_install geopy”.
  6. Specify your project’s projection in File>Project Properties.
  7. Get a Google Maps API key and tell the GeoCode plugin about it (QGIS>Plugins>GeoCode>Settings). You will need a Google account. If you don’t have your own domain name, you can just enter “google.com” when it asks for your domain.
  8. Geocode your first address by clicking on Plugins>GeoCode>Geocode. Type the full address (e.g. 121 N LaSalle Street, Chicago, IL for City Hall).
  9. The geocoded address will then appear in your Layers list as its own shapefile. All addresses geocoded (or reverse geocoded) in this project will appear in the same layer (therefore same attribute table).

Once you install all the components, you’ll never have to do this again. Geocoding will be available each and every time you use QGIS in the future on that workstation.

Tips

  • When you’re done geocoding,  save your results as a shapefile (right click the layer and click “Save as shapefile”). Twice I’ve lost my results after saving the project and quitting QGIS. When I reopened the project, the results layer was still listed, but contained no data.
  • Add a “name” column to the GeoCoding Plugin Results layer’s attribute table (toggle editing first). You can then type in the name of the building or destination at the address you geocoded. Edit the layer’s properties to have that name appear as a label for the point.

A map I made with QGIS showing three geocoded points of interest in Chicago. Data from City of Chicago’s GIS team.

 

Bike parking distance being put to test in Tucson

Work is underway to implement strict (but appropriate) rules about where Tucson, Arizona, businesses must install bike racks. This news comes from Tucson Vélo. It first came to my attention in May when I was creating and expanding my definition of Bike Parking Phenomenon A, which I now call the “50 feet rule.”

3 of4 bikes are parked on hand rails within 20 feet of this Seattle Whole Foods entrance while one bike is parked more than 50 feet away at the City-owned bike rack.

I left this comment on yesterday’s article from Tucson Vélo:

“Distance is more key to bike parking usage than the quality of bike parking fixture. Bicyclists prefer to use an easily removable sign pole that is closer to final destination than lock to a permanent bike rack further away.”

Some businesses there are complaining that devoting room in front of their business to bike parking removes space available for selling goods. I encourage everyone to support rules requiring bike parking within 50 feet. If installed further away, it simply will go unused.

I’ve written about distance parking many times:

After new bike racks were installed within 10 feet of the Logan Square Chicago Transit Authority entrance, no one parks at the original spots. See how the foot makes a difference?

MBAC meeting now online

In a small victory for open government (Gov 2.0), one new City of Chicago meeting has gone “live.”

Well, it was live two Wednesdays ago (if you showed up at City Hall at 3 PM on the 11th floor*), but you can watch the Mayor’s Bicycle Advisory Council on Ustream. Thanks to Jim Limber for setting up the webcam and streaming it. I haven’t watched it yet; you can also read the meeting minutes and see one of the distributed handouts.

MBAC is where people involved in bicycle projects come together to talk about them. It includes riding and racing clubs, police, city agencies, CTA, advocacy groups, messengers, and regular citizens.

An MBAC meeting in June 2009. This was a special meeting and the only relevant photo I had for this blog post.

*I missed this MBAC; first one since working at the Chicago Department of Transportation, where I started in October 2007. I’ll be leaving at the end of this month and I’m looking for new employment. You can hire me.

Cargo bike review in Momentum Magazine

Go read my first-ever article published in a magazine!

Turn to page 48 of Momentum, a magazine for people who like bikes. You can view it in its print form here or read the article on the magazine website.

A photo of the review. The printed photo was taken by Stefano Rini.

Carrying three bags of recycling to the drop-off center in Bridgeport. My goal was to get a bike that can carry as much as possible.

Update on the new Chicago harbor

Since I posted an article about new, non-auto infrastructure projects in Chicago, a lot of people looking for information on the 31st Street Harbor (now visibly underway) have come across my blog. For them, I give this update.

A new breakwater and new piers will be built. I really want to know what the floating eyeballs are for. I imagine they’re markers for construction.

I was counting people entering the Lakefront Trail from the 31st Street access point yesterday for an Active Transportation Alliance project. Afterwards, I moseyed over to get a glance at the construction.

This photo shows how the pier has been closed for construction. I hardly see anyone using the pier except just to walk down and back – it seems few people fish here.