Add simple get location function.