updated location API from POST to GET