Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/go-api-libs/iss-location
Go library for the ISS Current Location. 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.
https://github.com/go-api-libs/iss-location
api api-client api-library astronauts astronomy go golang gps integration international-space-station iss-location iss-location-api isslocation openapi openapi3 space
Last synced: about 1 month ago
JSON representation
Go library for the ISS Current Location. 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.
- Host: GitHub
- URL: https://github.com/go-api-libs/iss-location
- Owner: go-api-libs
- License: mit
- Created: 2024-12-22T11:01:31.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-12-22T13:59:59.000Z (about 2 months ago)
- Last Synced: 2024-12-31T07:46:07.875Z (about 2 months ago)
- Topics: api, api-client, api-library, astronauts, astronomy, go, golang, gps, integration, international-space-station, iss-location, iss-location-api, isslocation, openapi, openapi3, space
- Homepage:
- Size: 511 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🛰️ ISS Current Location
[![Go Reference](https://pkg.go.dev/badge/github.com/go-api-libs/iss-location.svg)](https://pkg.go.dev/github.com/go-api-libs/iss-location/pkg/isslocation)
[![Official Documentation](https://img.shields.io/badge/docs-API-blue)](http://open-notify.org)
[![OpenAPI](https://img.shields.io/badge/OpenAPI-3.1-blue)](/api/openapi.json)
[![Go Report Card](https://goreportcard.com/badge/github.com/go-api-libs/iss-location)](https://goreportcard.com/report/github.com/go-api-libs/iss-location)
![Code Coverage](https://img.shields.io/badge/coverage-100%25-brightgreen)
![API Health](https://img.shields.io/badge/API_health-90%25-brightgreen)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](./LICENSE)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.
## Installation
To install the library, use the following command:
```shell
go get github.com/go-api-libs/iss-location/pkg/isslocation
```## Usage
### Example 1: Get the current location of the International Space Station
```go
package mainimport (
"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
}```
### Example 2: Get a list of astronauts currently in space
```go
package mainimport (
"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
}```
## Additional Information
- [**Go Reference**](https://pkg.go.dev/github.com/go-api-libs/iss-location/pkg/isslocation): The Go reference documentation for the client package.
- [**Official Documentation**](http://open-notify.org): The official API documentation.
- [**OpenAPI Specification**](./api/openapi.json): The OpenAPI 3.1.0 specification.
- [**Go Report Card**](https://goreportcard.com/report/github.com/go-api-libs/iss-location): Check the code quality report.## Contributing
If you have any contributions to make, please submit a pull request or open an issue on the [GitHub repository](https://github.com/go-api-libs/iss-location).
## License
This project is licensed under the MIT License. See the [LICENSE](./LICENSE) file for details.