add location api