The Travel Warnings API offers travel advisory for most countries on earth. The advisory originates from aggregating official travel advisories from different countries.
For example: the German authorities suggest country XYZ is dangerous to a certain extend. Other countries (e.g. USA or Switzerland) may have published similar or different suggestions for the same destination.
This service collects this information for each destination country from 6 different authorities/nations and provides an API that returns current travel danger data in JSON format. Advisories are updated daily.
This data is normalized to form a rating between 0 and 5. Where 5 is the most dangerous. And 0 means no information.
The following is a list of sample source code snippets that matched your search term. Source code snippets are chunks of source code that were found out on the Web that you can cut and paste into your own source code. Whereas most of the sample source code we've curated for our directory is for consuming APIs, we occasionally find something interesting on the API provider side of things. If you know of some sample source code that would be of interest to the ProgrammableWeb community, we'd like to know about it. Be sure to check our guidelines for making contributions to ProgrammableWeb.