Skip to content

Commit

Permalink
Sept2018quick (#7)
Browse files Browse the repository at this point in the history
* add OneBusAway link reference

* minor format updates
  • Loading branch information
Setheck committed Sep 24, 2018
1 parent 5b56962 commit 68ce15a
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ $ go get -u github.com/Setheck/oba
# Import
``` go
import (
"fmt"
"log"
"github.com/Setheck/oba"
)
```
Expand All @@ -28,29 +28,28 @@ func main() {
client := oba.NewDefaultClientS(server.URL, TestApiKey)
agency, e := client.Agency("1")
if e != nil {
t.Error(e)
log.Fatal(e)
}
}
```
```
## AgenciesWithCoverage
### AgenciesWithCoverage
```go
func main() {
client := oba.NewDefaultClientS(server.URL, TestApiKey)
awcs, e := client.AgenciesWithCoverage()
if e != nil {
t.Error(e)
log.Fatal(e)
}
}
```
## Route
### Route
```go
func main() {
client := oba.NewDefaultClientS("http://api.pugetsound.onebusaway.org/api/where/", "TEST")
route, err := client.Route("1_100224")
if err != nil {
log.Fatal(err)
}
fmt.Print(route.ID)
log.Print(route.ID)
}
```

0 comments on commit 68ce15a

Please sign in to comment.