-
Notifications
You must be signed in to change notification settings - Fork 0
Adventures Objects
Andrew Maclean edited this page Jun 23, 2024
·
20 revisions
{
type: 'FeatureCollection,
features: GeoJSONFeature[]
}Description:
Each feature in a GeoJSON object is a GeoJSON Feature
{
type: 'Feature,
geometry: {
type: 'Point' | 'LineString'
coordinates: [lng, lat] | [lng, lat][]
},
id: Int
properties: {
adventureType: adventureType
adventureName: String
color: String
}
}Description:
id is the feature id, used to call the feature individually
adventureName is the name of the feature
color denotes the path color on the map
enum('ski' | 'climb' | 'hike' | 'bike' | 'skiApproach')Description:
The available adventure types to choose from
{
lat: Double,
lng: Double
}Description:
The longitude, and latitude arranged in an array. Used for GeoJSON structures.
[lng, lat]Description:
The latitude and longitude of a point. Any coordinates will be formated like this unless in a GeoJSON object.