A Gatsby source plugin for getting city bike station's from Oslo, Bergen, Trondheim and Edinburgh into your Gatsby application.
yarn add gatsby-source-citybike
or with npm
npm install gatsby-source-citybike
In your gatsby-config.js
module.exports = {
plugins: [
{
resolve: 'gatsby-source-citybike',
options: {
cities: ['Oslo', 'Bergen'],
},
},
]
}
Type: array
Default: ['oslo']
Available cities: Oslo, Bergen, Trondheim and Edinburgh.
query {
allCitybikeStation {
edges {
node {
name
lat
lon
city
address
capacity
station_id
}
}
}
}
query {
allCitybikeStation(filter: { city: { eq: "Oslo" } }) {
edges {
node {
name
lat
lon
address
capacity
station_id
}
}
}
}