Blacklist all Google imagery with one regex

This expression catches 100% of Google imagery seen in imagery_used
tags with no false positives.

It won't stop someone who tries to load "https://www.google.com/maps" as
imagery, but that will fail to get imagery anyway.
This commit is contained in:
Paul Norman 2016-08-13 13:56:20 -07:00 committed by Tom Hughes
parent 2b73eeb170
commit 00982e137f

View file

@ -87,9 +87,9 @@ defaults: &defaults
require_terms_agreed: false
# Imagery to return in capabilities as blacklisted
imagery_blacklist:
- ".*\\.googleapis\\.com/.*"
- ".*\\.google\\.com/.*"
- ".*\\.google\\.ru/.*"
# Current Google imagery URLs have google or googleapis in the domain
# with a vt or kh endpoint, and x, y and z query parameters
- ".*\\.google(apis)?\\..*/(vt|kh)[\\?/].*([xyz]=.*){3}.*"
# URL of Overpass instance to use for feature queries
overpass_url: "//overpass-api.de/api/interpreter"
# Routing endpoints