Kernel.pbSetPokemonCenter (found in all Poké Centre nurse events) sets the "respawn" location to the player's current location (i.e. in front of the nurse). If you've not spoken to a nurse yet to do this, the respawn location is given by the Home global metadata.