Skip to content

Coffee Locator app that locates data based on a 3 mile radius from user location using four square and realm.

License

Notifications You must be signed in to change notification settings

Marquis103/Coffee-Locator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coffee-Locator

Coffee Locator app that locates data based on a 3 mile radius from user location using four square and realm.

On application start up, the user's location is extracted. A restful API call is made to foursquare using the das quadraft swift API wrapper to retrieve nearby coffee shops. If coffee shops (venues) are found, they are saved locally to realm, so that subsequent requests can check realm as a local cache before making another API call to four square.

The app consists of a map and a list of coffee shops as detailed in the image below. The app uses pins as clickable annotations that give basic information about the coffee shop.

alt text

How to Install

git clone https://github.com/Marquis103/Coffee-Locator.git

Things To Note

The search radius of the map is dictated by the distanceSpan variable in ViewController.swift. let distanceSpan:Double = 8046 //5 mile radius

License

Code released under the MIT license

About

Coffee Locator app that locates data based on a 3 mile radius from user location using four square and realm.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published