Skip to content

Commit

Permalink
Merge pull request #675 from james1465/master
Browse files Browse the repository at this point in the history
Add Ordnance Survey (UK) maps
  • Loading branch information
rinigus committed Jun 12, 2024
2 parents 1b577ea + b0effcf commit 40d1d21
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 2 deletions.
13 changes: 13 additions & 0 deletions maps/osgb_outdoor.json
Original file line number Diff line number Diff line change
@@ -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#"
}
13 changes: 13 additions & 0 deletions maps/osgb_roads.json
Original file line number Diff line number Diff line change
@@ -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#"
}
3 changes: 3 additions & 0 deletions poor/apikeys.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,7 @@

# https://docs.stadiamaps.com/
"STADIAMAPS_KEY": "",

# https://www.ordnancesurvey.co.uk
"OS_APIKEY": ""
}
11 changes: 9 additions & 2 deletions poor/keystore.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@
"OPENCAGE_KEY",

# https://docs.stadiamaps.com/
"STADIAMAPS_KEY"
"STADIAMAPS_KEY",

# https://osdatahub.os.uk/
"OS_APIKEY"
]

HEADERS = {
Expand All @@ -60,7 +63,8 @@
"MAPQUEST": HeaderDesc(_('Register at <a href="https://developer.mapquest.com">https://developer.mapquest.com</a> and create your own API key'), "MapQuest"),
"OPENCAGE": HeaderDesc(_('Register at <a href="https://opencagedata.com">https://opencagedata.com</a> and create your own API key'), "OpenCage"),
"STADIAMAPS": HeaderDesc(_('Register at <a href="https://stadiamaps.com">https://stadiamaps.com</a> and create your own API key'), "Stadia Maps"),
"HERE": HeaderDesc(_('Register at <a href="https://developer.here.com">https://developer.here.com</a> and create your own App API Key'), "HERE")
"HERE": HeaderDesc(_('Register at <a href="https://developer.here.com">https://developer.here.com</a> and create your own App API Key'), "HERE"),
"OS": HeaderDesc(_('Register at <a href="https://osdatahub.os.uk/">https://osdatahub.os.uk</a> and create your own App API Key'), "Ordnance Survey")
}

KEYDESC = {
Expand All @@ -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
Expand Down

0 comments on commit 40d1d21

Please sign in to comment.