How We Rank
A listing's rank is a number stored when that city category is seeded. The page shows places in that stored order. It is not a separate neighbourhood score, and it is not reviewed by hand before publication.
1) Where the places come from
scripts/seed-city.mjs asks Google Places for the category query in that city. Places rated under 3.5 are dropped. The rest are sorted by star rating, highest first.
2) How ties are broken
If two places have the same star rating, the one with more ratings comes first. If the rating and the rating count are both equal, they stay in the order the Places text search returned.
3) How the rank number is assigned
The seed keeps at most SEED_MAX_DETAILS_PER_CATEGORY places, or 5 when that setting is empty. It fetches place details, then sets rank to 1 for the first remaining place, 2 for the next, and so on. A place with no Google place id, a very short name, a spam-like name, a placeholder slug, or an address shorter than 5 characters is dropped after those numbers are assigned, so a gap in the rank numbers is possible.
4) What the rank is not
The seed does not score neighbourhood context, rating trends, or category-specific weights. Later cleanup scripts can renumber the rows that remain. They do not run a second ranking model.