using web services codethe program takes the search string and constructs url with the search string as properly encoded parameter and then uses urllib to retrieve the text from the google geocoding api unlike fixed web pagethe data we get depends on the parameters we send and the geographical data stored in google' servers once we retrieve the json datawe parse it with the json library and do few checks to make sure that we received good datathen extract the information that we are looking for the output of the program is as follows (some of the returned json has been removed)python geojson py enter locationann arbormi retrieving retrieved characters "results""address_components""long_name""ann arbor""short_name""ann arbor""types""locality""political}"long_name""washtenaw county""short_name""washtenaw county""types""administrative_area_level_ ""political}"long_name""michigan""short_name""mi""types""administrative_area_level_ ""political}"long_name""united states""short_name""us"