Created
June 22, 2016 19:29
-
-
Save joshuawright11/6a662bfaaeff25588b2f2dc63dba2580 to your computer and use it in GitHub Desktop.
Mock data
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| func mockData() -> [Annotation] { | |
| return ["a","b","c","d","e","f","g"].map({ | |
| let annotationJSON: JSON = [ | |
| "location":[ | |
| "id":$0, | |
| "metadata":[ | |
| "latitude":0.0, | |
| "longitude":0.0] | |
| ], | |
| "listings":[ | |
| [ | |
| "id":"listing\($0)", | |
| ListingTag.ForSale : ($0 == "c" || $0 == "e") | |
| ] | |
| ] | |
| ] | |
| return Annotation(json: annotationJSON)! | |
| }) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment