Skip to content
This repository has been archived by the owner on May 9, 2019. It is now read-only.

aabizri/go-jcdecaux.ssb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jcdecauxssb

Go library for the JcDecaux self-service bikes api

Install

go get github.com/nodvos/go-jcdecaux.ssb/jcdecauxssb/

Usage

Create a new client this way:

client := jcdecauxssb.New(APIKEY,nil)

With the client set, you can query the api this way:

// Get the list of contracts:
contracts := client.Contracts()
// Get all the station of a specific contract (in this case Paris)
parisStations := client.Stations("Paris")
// Retrieve my specific station
myStation := parisStations[42]
// Update it
myStation = client.StationData("Paris",myStation.Number)

The full JcDecaux API is documented at https://developer.jcdecaux.com/#/opendata/vls?page=dynamic.

Testing

Simply run 'go test -key APIKEY'

(See the official go test doc for more information)

Releases

No releases published

Packages

No packages published

Languages