-
Notifications
You must be signed in to change notification settings - Fork 0
Adventures Objects
Andrew Maclean edited this page Jun 25, 2024
·
20 revisions
{
adventure_id: Int,
adventure_name: String,
adventure_type: AdventureType,
difficulty: String,
rating: String,
nearest_city: String,
bio: String
}| Key | Type | Description |
|---|---|---|
adventure_id |
Int | |
adventure_name |
String | |
adventure_type |
AdventureType | |
difficulty |
String | The adventure difficulty score followed by ':' followed by the number of votes to calculate the average |
rating |
String | The adventure rating score followed by ':' followed by the number of votes to calculate the average |
nearest_city |
String | City, State |
bio |
String | Long form text of the adventure bio |
{
type: "FeatureCollection",
features: GeoJSONFeature[]
}| Key | Type | Description |
|---|---|---|
type |
"FeatureCollection" | |
features |
GeoJSON-Feature[] |
{
type: "Feature",
geometry: {
type: "Point" | "LineString"
coordinates: [lng, lat] | [lng, lat][]
},
id: Int
properties: {
adventureType: adventureType
adventureName: String
color: String
}
}| Key | Type | Description |
|---|---|---|
type |
"Feature" | |
geometry |
Object | |
geometry.type |
"Point" or "Linestring" |
|
geometry.coordinates |
[Float, Float] | An array of two floats representing, longitude and latitude |
id |
Int | The feature id |
properties |
Object | |
properties.adventureType |
AdventureType | |
properties.adventureName |
String | The name of the adventure |
properties.color |
String | The line color portrayed on the map |
enum('ski' | 'climb' | 'hike' | 'bike' | 'skiApproach'){
lat: Float,
lng: Float
}[lng, lat]