You're on the right track.

http://en.wikipedia.org/wiki/Geocoding