Documentation ¶
Overview ¶
Package advisory is providing support to query the Travel Advisory API and retrieve an advisory for a specified city. www.travel-advisory.info
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advisory ¶
type Advisory struct { Country string `json:"country"` CountryCode string `json:"country_code"` Continent string `json:"continent"` Score float64 `json:"score"` LastUpdated string `json:"last_updated"` Message string `json:"message"` Source string `json:"source"` }
Advisory contains the travel advisory result captured for a city. When the advisory score is below 4 out of 5, it's not considered safe to travel.
Click to show internal directories.
Click to hide internal directories.