location api call