Scale AI VO Coding Interview: Find Place IDs for a List of Resorts Using the Google Maps API

18 Views
No Comments

You are given a starting location and a list of resort names. In this interview, you should access the Maps APIs through the provided proxy.

If you would normally make a request to a Google Maps endpoint, instead make the request to the corresponding endpoint on the interview proxy domain.

Given a starting location string and a list of resort names, write code that uses the Maps API to look up the place ID for each location.

START_LOCATION = "556 Jackson St, San Francisco CA 94109"
RESORTS = [
    "Palisades Tahoe",
    "Kirkwood Mountain Resort",
    "Jackson Hole Mountain Resort",
    "A-basin",
]

The task is to query place IDs for a starting address and a list of resort names by calling the Maps API through the provided interview proxy. The main work is to build the correct HTTP requests, include the required headers, parse JSON responses, and handle API errors cleanly. This is more of an API integration and data-fetching problem than a classic algorithm challenge.

END
 0