Skip to content

Swedish Meteorological and Hydrological Institute Weather API Wrapper in GO

Notifications You must be signed in to change notification settings

hsnkorkmaz/smhi-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

smhi-go

Documentation

Full API documentation can be found at SMHI.

Getting Started

go get github.com/hsnkorkmaz/smhi-go
import smhi "github.com/hsnkorkmaz/smhi-go/services"

Endpoints

Category

https://opendata-download-metobs.smhi.se/api.json

response, err := smhi.GetCategoryResult()

Version

https://opendata-download-metobs.smhi.se/api/version/1.0.json

response, err := smhi.GetVersionResult("1.0")

Parameter

https://opendata-download-metobs.smhi.se/api/version/1.0/parameter/1.json

response, err := smhi.GetParameterResult("1.0", "1")

Station

https://opendata-download-metobs.smhi.se/api/version/1.0/parameter/1/station/159880.json

response, err := smhi.GetStationResult("1.0", "1", "159880")

Station Set

https://opendata-download-metobs.smhi.se/api/version/1.0/parameter/1/station-set/all.json

response, err := smhi.GetStationSetResult("1.0", "1", "all")

Period - Station

https://opendata-download-metobs.smhi.se/api/version/1.0/parameter/1/station/159880/period/latest-months.json

response, err := smhi.GetPeriodStationResult("1.0", "1", "159880", "latest-months")

Period - Station Set

https://opendata-download-metobs.smhi.se/api/version/1.0/parameter/1/station-set/all/period/latest-hour.json

response, err := smhi.GetPeriodStationSetResult("1.0", "1", "all", "latest-hour")

Data - Station

https://opendata-download-metobs.smhi.se/api/version/1.0/parameter/1/station/159880/period/latest-months/data.json

response, err := smhi.GetDataStationResult("1.0", "1", "159880", "latest-months")

Data - Station Set

https://opendata-download-metobs.smhi.se/api/version/1.0/parameter/1/station-set/all/period/latest-hour/data.json

response, err := smhi.GetDataStationSetResult("1.0", "1", "all", "latest-hour")

About

Swedish Meteorological and Hydrological Institute Weather API Wrapper in GO

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages