GEOCODING
In this section, we'll explore QGIS' geocoding capabilities to geocode hospital locations in Chicago.
PREPARE AN ADDRESS FILE
For this workshop, we'll use Chicago Hospital Location.csv file.
INSTALL THE MMQGIS PLUGIN
MMQGIS is a set of Python plugins for manipulating vector map layers in Quantum GIS. Originally created in 2009, MMQGIS includes Geocoding as well as Geometry Conversion, Cluster ("Hub") Analysis, Animation and many other features, including basic vector processing operations that are sometimes used as an alternative to the original native QGIS vector plugin set and to Sextante, another plugin that has become a core feature..
GEOCODING AN ADDRESS FILE IN QGIS
Now that the plugin is installed, you can access the Geocoding function:
There are two geocoding options: one for geocoding your address file using either Google or OpenStreetMap geocoding web services or by geocoding from a street layer. For this example, the address file will be geocoded using Google Maps. Geocoding using one of the web service options will require an Internet connection.
Note: there is a 2,500 record limit within a 24-hour period when using Google’s service.
You will need to have a column for the address, a column for the city, and a column for the state (for US records) and/or a column for the countries. The first line of the CSV file should contain the column names with each separated by a comma. The second and all subsequent lines contain the records for that file with each column again separated by a comma.
The length of time for geocoding depends on how large your file is. Bases on previous attempts, we estimated that it would take a minute for a 50 record file.
1. addrtype: is the Google <type> element or OSM class attribute that indicates what address type it is (street, route, etc.)
2. addylocat: is the Google <location_type> element or OSM type attribute that indicates the relationship of the coordinates to the addressed feature (rooftop, geometric center, interpolation, etc.)
For more information on geocoding in QGIS:
https://plugins.qgis.org/plugins/mmqgis/ - the official plug-in documentation
http://michaelminn.com/linux/mmqgis/ - from the man who wrote the plug-in.