Skip to content

Instantly share code, notes, and snippets.

@joshuawright11
Created June 22, 2016 19:29
Show Gist options
  • Select an option

  • Save joshuawright11/6a662bfaaeff25588b2f2dc63dba2580 to your computer and use it in GitHub Desktop.

Select an option

Save joshuawright11/6a662bfaaeff25588b2f2dc63dba2580 to your computer and use it in GitHub Desktop.
Mock data
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