Change Network location from terminal
Yep, pretty easy too.  You may need to 'sudo' the command depending on your system's configuration.

networksetup -switchtolocation "location name"


There are some other options, too:

networksetup -getcurrentlocation
networksetup -listlocations
networksetup -createlocation &lt;location name&gt; [populate]
networksetup -deletelocation &lt;location name&gt;
networksetup -switchtolocation &lt;location name&gt;