Set coordinates using the location. Implements #43.