Provides the current location of the International Space Station (including latitude, longitude, and timestamp) and a list of people currently in space. Users are advised to poll the API no more than once every 5 seconds.
To install the library, use the following command:
go get github.com/go-api-libs/iss-location/pkg/isslocation
package main
import (
"context"
"github.com/go-api-libs/iss-location/pkg/isslocation"
)
func main() {
c, err := isslocation.NewClient()
if err != nil {
panic(err)
}
ctx := context.Background()
issLocation, err := c.GetIssLocation(ctx)
if err != nil {
panic(err)
}
// Use issLocation object
}
package main
import (
"context"
"github.com/go-api-libs/iss-location/pkg/isslocation"
)
func main() {
c, err := isslocation.NewClient()
if err != nil {
panic(err)
}
ctx := context.Background()
peopleInSpace, err := c.GetPeopleInSpace(ctx)
if err != nil {
panic(err)
}
// Use peopleInSpace object
}
- Go Reference: The Go reference documentation for the client package.
- Official Documentation: The official API documentation.
- OpenAPI Specification: The OpenAPI 3.1.0 specification.
- Go Report Card: Check the code quality report.
If you have any contributions to make, please submit a pull request or open an issue on the GitHub repository.
This project is licensed under the MIT License. See the LICENSE file for details.