forked from chachasikes/Foodshed-Open-Data-Standard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfoodResource.json
123 lines (119 loc) · 3.39 KB
/
foodResource.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
/**
FoodResource
* For places that centralize and distribute food related items
* ID: Should be a unique identifier.
** @TODO Might need to be URL unless it is autogenerated.
* Name : Name of the food resource.
* Type : What kind of resource is this?
** Can follow model of Open Street Map where appropriate.
** Different Types may include more information that what is listed here.
* Style : A variation on a type.
** Can follow model of Open Street Map where appropriate.
* Keywords : // General tags for features of the resource.
* Phone : This is the primary phone number for the resource.
** Not the same as phone number for contacts.
* WebURL : An array of web addresses for the resource.
* Email : An array of emails for the resource.
** This is the primary email for the resource. Not the same as emails for contacts.
* Location : An array of addresses.
** Supports multiple addresses and locations with addresses and geocoding
** GeoJSON format: http://geojson.org/geojson-spec.html
** @TODO Check this is the best way to implement this
* Hours : When the resource is open to the public.
* Season: When in the calendar year the resource is open to the public.
* Description : A short description of the resource.
* Information : Some basic information about the resource.
* Attributes {Example, Scores. See subtypes.}
*/
{
"ID": "",
"name": "Hayes Valley Farm",
"type": "community_food_growing",
"style": "urban farm",
"keywords": "",
"phone" : [
{
"type": "cell",
"number": "803 555-2121"
}
],
"url": ["http://hayesvalleyfarm.com"],
"email": [[email protected]],
"location": [
{
"streetAddress": "21 2nd Street",
"city": "New York",
"state": "NY",
"postalCode": 10021,
{ "geometry": {
"type": "Point",
"coordinates": [97.03125, 39.7265625]
},
}
},
{
"streetAddress": "577 Airport Blvd",
"city": "Burlingame",
"state": "CA",
"postalCode": 94010,
{ "geometry": { "type": "Polygon",
"coordinates": [
[ [100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0] ],
[ [100.2, 0.2], [100.8, 0.2], [100.8, 0.8], [100.2, 0.8], [100.2, 0.2] ]
]
}
}
}
],
"contact" : [{ // Support multiple contacts. @TODO Check this is the most standard format for multiple contacts. How to add Social Media links?
"firstName": "John",
"lastName": "Smith",
"phoneNumbers": [
{
"type": "home",
"number": "203 555-1212"
},
{
"type": "cell",
"number": "403 555-2121"
}
]},
{
"firstName": "Jane",
"lastName": "Smith",
"phoneNumbers": [
{
"type": "home",
"number": "303 555-1212"
},
{
"type": "cell",
"number": "303 555-2121"
}
]},
"emails": [
]
],
}
"hours" : [{
"Monday" : "2 - 6 p.m. PST",
"Thusday" : "1 - 4 p.m. PST",
"Sunday" : "12 - 6 p.m. PST",
}],
"season" : [{
"January" : "Rainy, but we are open.",
}],
"description": "This is a short description",
"information": "This is a general information",
"attributes": {
{
"scores": {
"energy_efficiency": 10,
"productivity": 10,
"waste": 0,
},
}
},
}