-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Ordnance Survey providers #140
Conversation
OS Maps API [get a free key](https://osdatahub.os.uk/) [OS Maps documentation](https://osdatahub.os.uk/docs/wmts/technicalSpecification) [OS attribution](https://www.ordnancesurvey.co.uk/business-government/licensing-agreements/copyright-acknowledgements)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Two minor notes left in the code.
I'll just need to remind myself to make a follow-up PR adding a test once I store the token in the repo environment variables.
"url": "https://api.os.uk/maps/raster/v1/zxy/Road_3857/{z}/{x}/{y}.png?key={key}", | ||
"html_attribution": "Contains OS data © Crown copyright and database right {year}", | ||
"attribution": "Contains OS data (C) Crown copyright and database right {year}", | ||
"key": "<A valid OS MapsAPI Key. Get a free key here - https://osdatahub.os.uk/>", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"key": "<A valid OS MapsAPI Key. Get a free key here - https://osdatahub.os.uk/>", | |
"key": "<insert your valid OS MapsAPI Key. Get a free key here - https://osdatahub.os.uk/>", |
these placeholders need to start with "<insert your"
as we use this string to check if a token is required or not (maybe a bit clumsily but that's how it is done now).
"Road_3857": { | ||
"url": "https://api.os.uk/maps/raster/v1/zxy/Road_3857/{z}/{x}/{y}.png?key={key}", | ||
"html_attribution": "Contains OS data © Crown copyright and database right {year}", | ||
"attribution": "Contains OS data (C) Crown copyright and database right {year}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've now also noticed the {year}
placeholder here. We currently don't support placeholders outside of the url
parameter, so you will need to spell it out here. The attribution here shall always have the current year? We may need to figure out some autoupdating logic within https://github.com/geopandas/xyzservices/blob/main/provider_sources/_compress_providers.py
I can probably take care of it within the follow-up PR alognside tests.
this should be automatically updated
All good now. Thanks! |
OS Maps API
get a free key
OS Maps documentation
OS attribution