Design Place Recommendations for a Moving User
Retrieve and rank nearby eligible places for personalized mobile discovery while location, place state and feedback change.
Problem statement
For this exercise, assume a consented mobile user opens a map-based discovery view without a text query and requests personalized nearby places. The device may move between requests.
The service retrieves eligible places within 10 km of the approximate request location, ranks a first page, and returns a stable continuation token. A response pins its location context, request time, place-catalog generation and ranker release; a material location change starts a new generation.
Deleted, closed or ineligible places must be excluded before a row is returned, even if a page token was created earlier. Use user, place and local-context signals to balance proximity, relevance and variety. New users or places with little history need a contextual fallback.
Impressions, clicks, directions requests and optional consented visits have different evidential strength; an unobserved visit is not a negative label. Design catalog ingestion, geo candidate retrieval, features, ranking, feedback/evaluation, latency and privacy boundaries, and safe rollout.
The direct Meta onsite report asks for an ML system that recommends places to a user in maps. The nearby moving-user and label/model discussion appears in a same-post compilation of other reports, not as an independent dated interview. The detailed scope and numeric targets below are practice assumptions.
Text-query search ranking, navigation routing, place reviews, and payment booking are outside scope.
What to build
- A consented user receives a bounded, personalized page of nearby open and eligible places for the current approximate location, with stable continuation under the same location context.
- Operators can publish and update place location, opening/closure and eligibility state; new responses suppress stale or ineligible places.
- The platform records minimal consented exposures and actions and evaluates recommendation quality while accounting for candidate and position selection.
- New users and low-history places receive contextual fallback and participate in versioned, monitored ranker releases without needing a full interaction history.
At scalePractice assumption
- 30 million active places, 5 million daily users and 10,000 recommendation requests per second at peak; p95 first-page latency is below 250 ms.
- Discovery considers an initial 10-km radius around the approximate current location and returns 20 places on the first page; the candidate set is bounded before expensive ranking.
- A material location change requires a new ranking generation, while an unchanged context may paginate stably; new reads must still filter closed, deleted or ineligible places.
- A small consented exploration bucket logs candidate inclusion and position probabilities; precise location is not retained in general analytics, and unobserved visits remain unknown.