Skip to content

cteterita/on-location-server

Repository files navigation

On Location, A Search App for Location-Centric Media

Live Link

Summary

Are you travelling to a new location and want to know what to watch and read before you get there?

Use On Location to search the map for stories set in your favorite locations.

Screenshot of app

Technologies & Services Used:

Frontend Repo

API Documentation

/pins

GET

Pins are fetched using the northeast and southwest corners of the current map coordinates, delivered as query params in the URL.

// req.query
{
  "ne": String, // format: `lat,lon`
  "sw": String // format: `lat,lon`
}

// req.body
{}

// res.body
[
  {
    "media": String, // one of "movie", "book", "tv_show", or "tv_episode"
    "title": String,
    "link": String, // must be valid URL
    "lat": Float, // latitude of location
    "lon": Float // longitude of location
  },
  ...
]

POST

// req.body
{
  "media": String, // one of "movie", "book", "tv_show", or "tv_episode"
  "title": String,
  "link": String, // must be valid URL
  "lat": Float, // latitude of location
  "lon": Float // longitude of location
}

// res.body
{
  "media": String, // one of "movie", "book", "tv_show", or "tv_episode"
  "title": String,
  "link": String, // must be valid URL
  "lat": Float, // latitude of location
  "lon": Float, // longitude of location
  "id": Int
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published