Skip to content

Commit

Permalink
Change http links to planet.osm.org to https
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeoneElseOSM committed May 27, 2018
1 parent 11cf8ba commit a12c823
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
@@ -1,9 +1,9 @@
OpenStreetMap Diff Tool
==========================

This module is an analysis tool for use with [OpenStreetMap diff files (`*.osc`)](http://wiki.openstreetmap.org/wiki/Planet.osm/diffs).
This module is an analysis tool for use with [OpenStreetMap diff files (`*.osc`)](https://wiki.openstreetmap.org/wiki/Planet.osm/diffs).

Diff are available at http://planet.openstreetmap.org/replication for anyone to download in minutely, hourly, or daily segments.
Diff are available at https://planet.openstreetmap.org/replication for anyone to download in minutely, hourly, or daily segments.

Installation
============
Expand Down
6 changes: 3 additions & 3 deletions osmdt/fetch.py
Expand Up @@ -7,12 +7,12 @@ def fetch(sequence, time='hour'):
sequence : string or integer
Diff file sequence desired. Maximum of 9 characters allowed. The value
should follow the two directory and file name structure from the site,
e.g. http://planet.osm.org/replication/hour/NNN/NNN/NNN.osc.gz (with
e.g. https://planet.osm.org/replication/hour/NNN/NNN/NNN.osc.gz (with
leading zeros optional).
time : {'minute', 'hour', or 'day'}, optional
Denotes the diff file time granulation to be downloaded. The value
must be a valid directory at http://planet.osm.org/replication/.
must be a valid directory at https://planet.osm.org/replication/.
Returns
-------
Expand All @@ -29,7 +29,7 @@ def fetch(sequence, time='hour'):
raise ValueError('The supplied type of replication file does not exist.')

sqn = str(sequence).zfill(9)
url = "http://planet.osm.org/replication/%s/%s/%s/%s.osc.gz" %\
url = "https://planet.osm.org/replication/%s/%s/%s/%s.osc.gz" %\
(time, sqn[0:3], sqn[3:6], sqn[6:9])
content = requests.get(url)

Expand Down

0 comments on commit a12c823

Please sign in to comment.