You should now be able to use the functions below.

Use geog and geogport functions

The shell functions defined below are written for bash; if you're using a different shell then they may need modification.