Mac OS X change IP configuration automatically by location (by Wifi network)?
It is possible to do without any third party, see https://github.com/rimar/wifi-location-changer
This is not something that can be done simply through the OS.
The aforementioned Locations is one option, along with freeware Airport Location or MarcoPolo or paid Network Location. There is also an AppleScript called WiFiScriptor that could help.
However! you need not go into System Preferences->Network->[Location dropdown] . You can go through the Apple Menu->Location (about 6 options down)->[select the location you want]
-b