diff --git a/maps/osgb_outdoor.json b/maps/osgb_outdoor.json new file mode 100644 index 00000000..44f83f32 --- /dev/null +++ b/maps/osgb_outdoor.json @@ -0,0 +1,13 @@ +{ + "attribution": { + "© Ordnance Survey": "https://www.ordnancesurvey.co.uk", + "Contains OS Data © Crown Copyright and database rights 2024" : "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" + }, + "format": "raster", + "keys": ["OS_APIKEY"], + "name": "OSGB Outdoor", + "profiles": ["mixed", "online"], + "tile_size": 256, + "provider": "Ordnance Survey Outdoor", + "tile_url": "https://api.os.uk/maps/raster/v1/zxy/Outdoor_3857/{z}/{x}/{y}.png?key=#OS_APIKEY#" +} diff --git a/maps/osgb_roads.json b/maps/osgb_roads.json new file mode 100644 index 00000000..12dd8581 --- /dev/null +++ b/maps/osgb_roads.json @@ -0,0 +1,13 @@ +{ + "attribution": { + "© Ordnance Survey": "https://www.ordnancesurvey.co.uk", + "Contains OS Data © Crown Copyright and database rights 2024" : "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" + }, + "format": "raster", + "keys": ["OS_APIKEY"], + "name": "OSGB Outdoor", + "profiles": ["mixed", "online"], + "tile_size": 256, + "provider": "Ordnance Survey Roads", + "tile_url": "https://api.os.uk/maps/raster/v1/zxy/Road_3857/{z}/{x}/{y}.png?key=#OS_APIKEY#" +} diff --git a/poor/apikeys.py b/poor/apikeys.py index b9c67c19..a45cb2d7 100644 --- a/poor/apikeys.py +++ b/poor/apikeys.py @@ -20,4 +20,7 @@ # https://docs.stadiamaps.com/ "STADIAMAPS_KEY": "", + + # https://www.ordnancesurvey.co.uk + "OS_APIKEY": "" } diff --git a/poor/keystore.py b/poor/keystore.py index caacd08b..7d4d461d 100644 --- a/poor/keystore.py +++ b/poor/keystore.py @@ -50,7 +50,10 @@ "OPENCAGE_KEY", # https://docs.stadiamaps.com/ - "STADIAMAPS_KEY" + "STADIAMAPS_KEY", + + # https://osdatahub.os.uk/ + "OS_APIKEY" ] HEADERS = { @@ -60,7 +63,8 @@ "MAPQUEST": HeaderDesc(_('Register at https://developer.mapquest.com and create your own API key'), "MapQuest"), "OPENCAGE": HeaderDesc(_('Register at https://opencagedata.com and create your own API key'), "OpenCage"), "STADIAMAPS": HeaderDesc(_('Register at https://stadiamaps.com and create your own API key'), "Stadia Maps"), - "HERE": HeaderDesc(_('Register at https://developer.here.com and create your own App API Key'), "HERE") + "HERE": HeaderDesc(_('Register at https://developer.here.com and create your own App API Key'), "HERE"), + "OS": HeaderDesc(_('Register at https://osdatahub.os.uk and create your own App API Key'), "Ordnance Survey") } KEYDESC = { @@ -84,6 +88,9 @@ # here.com "HERE_APIKEY": _("HERE API Key"), + + # www.ordnancesurvey.co.uk + "OS_APIKEY": _("Ordnance Survey API Key"), } # List of keys that are made available only after end user license is