Added in location api functionality.