The command line interface works just like the Geocoder.search method and allows you to set various configuration options like geocoding service, language, etc. You can also get the raw JSON response (or URL) from the geocoding API:
$ geocode -s geocoder_ca "44.981667,-93.27833"
Latitude: 44.981165
Longitude: -93.279225
Full address: 380 7th St N, Minneapolis, ...
City: Minneapolis
State/province: MN
Postal code: 55403
Country: United States
Google map: http://maps.google.com/maps?...
$ geocode --json "1 Twins Way, Minneapolis"
{
"status": "OK",
"results": [ {
"types": [ "street_address" ],
"formatted_address": "536 1/2 N 3rd St...",
...
} ]
}
For details see geocode -h.