Ease dependency on main tags
This commit is contained in:
parent
112ad40c5e
commit
951a41821c
1 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ from datetime import datetime
|
|||
STATE_FILENAME = os.path.join(path, 'mapsme-state.txt')
|
||||
REPLICATION_BASE_URL = 'http://planet.openstreetmap.org/replication/changesets'
|
||||
API_ENDPOINT = 'https://api.openstreetmap.org/api/0.6'
|
||||
MAIN_TAGS = ('amenity', 'shop', 'tourism', 'historic', 'craft', 'office', 'emergency', 'barrier', 'highway', 'leisure', 'waterway', 'entrance', 'building')
|
||||
MAIN_TAGS = ('amenity', 'shop', 'tourism', 'historic', 'craft', 'office', 'emergency', 'barrier', 'highway', 'leisure', 'waterway', 'natural', 'place', 'entrance', 'building')
|
||||
INTERESTING_TAGS = list(MAIN_TAGS) + ['name']
|
||||
|
||||
def download_last_state():
|
||||
|
@ -98,7 +98,7 @@ def create_change(changeset, obj):
|
|||
main = '{0}={1}'.format(k, obj['tags'][k].encode('utf-8'))
|
||||
break
|
||||
if main is None:
|
||||
return None
|
||||
main = 'unknown'
|
||||
|
||||
ch = Change()
|
||||
ch.changeset = changeset['id']
|
||||
|
|
Loading…
Add table
Reference in a new issue