1. modifying the json output format to remove provision for multiple ipaddress input since we really don't require that 2. indenting the code so that it matches with geocode-glib code 3. adding a function to print error messages in json format
1.using soup_form_decode to process QUERY_STRING 2. and some other changes
1. changes in print_error_in_json function 2. changes in the get_ipaddress to get the REMOTE_ADDR if no ip address is specified