Nearby App (3)
Nearby App (3)
Imagine you are at a new place and have some time there and don’t exactly know how you can
spend the next few hours, we want to build an app that helps us solve this.
An app that takes user location, distance from current location and gives out a list of venues
he/she can visit and buy tickets around that location.
Requirements:
● Get list of venues from this api
● We fetch only 10 venues at once from API and paginate when the user scrolls further.
● Users are able to filter venues by distance using the slider as shown in the UI.
● Local caching - venues fetched during the last session (irrespective of location and
preference changes) are shown before a network call for the current session is
successful.
● The app should support portrait mode only.
Good to have
● Searching the venues based on the name of the venue. (local search)
Expectations:
Arguments to be passed
● cleint_id = `Mzg0OTc0Njl8MTcwMDgxMTg5NC44MDk2NjY5`
● per_page = Number of items to be fetched per page
● page = Page number
● lat and lon = User’s current Latitude and Longitude.
● range = Filter to search venues based on distance. Unit is in miles. So if you need to filter
venues within 12 miles then the value will be `12mi`.
● q = argument can be used to filter venues based on name.
Example:
curl --location --request GET
'https://api.seatgeek.com/2/venues?per_page=10&page=1&client_id=Mzg0O
Tc0Njl8MTcwMDgxMTg5NC44MDk2NjY5&lat=12.971599&lon=77.594566&range=12m
i&q=ub'
Sample Mock