diff --git a/README.md b/README.md index 8a0a44a..7ee410c 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If it is in the **Time Series format** then the metric name needs to match a key The list of locations can be provided in several ways: -- json files with locations and their coordinates (the plugin includes list for countries and US states) +- json files with locations and their coordinates (the plugin includes list for countries and US states/Canadian Provinces) - json endpoints that return a list of locations and their coordinates Time Series data contains a timestamp, a metric name and a numeric value. In other words, a typical query for a time series database. Here is some time series data from Graphite: @@ -98,7 +98,7 @@ The following location files are included in the plugin: - Countries (2 letter codes) - Countries (3 letter codes) -- US states +- US states and Canadian Provinces Alternatively, you can provide your own location lists by using: @@ -217,7 +217,7 @@ It supports any datasource capable of generating a JSON response with a a custo There are four ways to provide data for the worldmap panel: - *countries*: This is a list of all the countries in the world. It works by matching a country code (US, FR, AU) to a node alias in a time series query. - - *states*: Similar to countries but for the states in USA e.g. CA for California + - *states*: Similar to countries but for the states in USA and Provinces in Canada e.g. CA for California, AB for Alberta - *geohash*: An ElasticSearch query that returns geohashes. - *json*: A json endpoint that returns custom json. Examples of the format are the [countries data used in first option](https://github.com/grafana/worldmap-panel/blob/master/src/data/countries.json) or [this list of cities](https://github.com/grafana/worldmap-panel/blob/master/src/data/probes.json). - *jsonp*: A jsonp endpoint that returns custom json wrapped as jsonp. Use this if you are having problems with CORS. diff --git a/src/data/states.json b/src/data/states.json index 4d7a6f3..cb07064 100644 --- a/src/data/states.json +++ b/src/data/states.json @@ -1,4 +1,10 @@ [ + { + "key": "AB", + "latitude": 53.9333, + "longitude": -114.5700, + "name": "Alberta" + }, { "key": "AK", "latitude": 61.3850, @@ -29,6 +35,12 @@ "longitude": -111.3877, "name": "Arizona" }, + { + "key": "BC", + "latitude": 53.7267, + "longitude": -127.6476, + "name": "British Columbia" + }, { "key": "CA", "latitude": 36.1700, @@ -125,6 +137,12 @@ "longitude": -71.5314, "name": "Massachusetts" }, + { + "key": "MB", + "latitude": 56.4152, + "longitude": -98.7390, + "name": "Manitoba" + }, { "key": "MD", "latitude": 39.0724, @@ -173,6 +191,12 @@ "longitude": -110.3261, "name": "Montana" }, + { + "key": "NB", + "latitude": 46.5653, + "longitude": -66.4619, + "name": "New Brunswick" + }, { "key": "NC", "latitude": 35.6411, @@ -203,12 +227,36 @@ "longitude": -74.5089, "name": "New Jersey" }, + { + "key": "NL", + "latitude": 54.1355, + "longitude": -61.6604, + "name": "Newfoundland and Laborador" + }, { "key": "NM", "latitude": 34.8375, "longitude": -106.2371, "name": "New Mexico" }, + { + "key": "NS", + "latitude": 44.6820, + "longitude": -63.7443, + "name": "Nova Scotia" + }, + { + "key": "NT", + "latitude": 64.8255, + "longitude": -124.8457, + "name": "Northwest Territories" + }, + { + "key": "NU", + "latitude": 70.2998, + "longitude": -83.1076, + "name": "Nunavut" + }, { "key": "NV", "latitude": 38.4199, @@ -233,6 +281,12 @@ "longitude": -96.9247, "name": "Oklahoma" }, + { + "key": "ON", + "latitude": 51.2538, + "longitude": -85.3232, + "name": "Ontario" + }, { "key": "OR", "latitude": 44.5672, @@ -245,12 +299,24 @@ "longitude": -77.2640, "name": "Pennsylvania" }, + { + "key": "PE", + "latitude": 46.3107, + "longitude": -63.2168, + "name": "Prince Edward Island" + }, { "key": "PR", "latitude": 18.2766, "longitude": -66.3350, "name": "Puerto Rico" }, + { + "key": "QC", + "latitude": 50.8139, + "longitude": -73.2080, + "name": "Quebec" + }, { "key": "RI", "latitude": 41.6772, @@ -269,6 +335,12 @@ "longitude": -99.4632, "name": "South Dakota" }, + { + "key": "SK", + "latitude": 52.9399, + "longitude": -106.4509, + "name": "Saskatchewan" + }, { "key": "TN", "latitude": 35.7449, @@ -328,5 +400,11 @@ "latitude": 42.7475, "longitude": -107.2085, "name": "Wyoming" + }, + { + "key": "YT", + "latitude": 64.2823, + "longitude": -135.0000, + "name": "Yukon" } ]