Mechanic to find lodgings in settlement: Pathfinder 1e

Is there a mechanic in 1st Edition Pathfinder for a party to find good lodgings in a settlement (town/village/city)? I seem to recall reading it somewhere but I can’t nail down the source or the exact mechanic.

I think it’s something like a gather information check to a specified DC, passing = finding a good place and fail = some seedy place.

If anyone knows, would you be able to link the source and the exact rule?