Skip to content

Instantly share code, notes, and snippets.

@hassanabidpk
Last active April 16, 2016 08:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hassanabidpk/785f725ea00e201921521e341b4a3660 to your computer and use it in GitHub Desktop.
Save hassanabidpk/785f725ea00e201921521e341b4a3660 to your computer and use it in GitHub Desktop.
Common Endpoints
  • Get list of all restaurants: /api/v1/
  • Get list of restaurants for particular location and type: /api/v1/ with params location and rtype
  • Sample Request: https://searchrestaurant.pythonanywhere.com/api/v1/?format=json&location=oslo&rtype=pizza
Response Values
  • In case of error you will get an error key with a status code
  • You will get an array of dicts eaching containing information about place(restaurant,coffee shop etc.)
Name Type Definition
name string Name of the restaurant
latitude string (convert to double) Latitude of the restaurant location
longitude string (convert to double) Longitude of the restaurant location
address string Local address of the restaurant
checkins number number of checkins at this restaurant
photo_url string A 300x200 image of the restaurant
phone_number string Phone number of the restaurant if available otherwise N/A
created_at string (convert to datetime) A datetime string when this object was created
updated_at string (convert to datetime) A datetime string when this object was updated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment