Skip to content
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

Switch to api.openstreetmap.org API host #5

Merged
merged 5 commits into from
Oct 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions miscsrc/check-osm-watch-list.pl
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@

my $osm_watch_list = "$bbbike_rootdir/tmp/osm_watch_list";
my $osm_file = "$bbbike_rootdir/misc/download/osm/berlin.osm.bz2";
my $osm_api_url = 'https://www.openstreetmap.org/api/0.6';
my $osm_api_url = 'https://api.openstreetmap.org/api/0.6';
my $osm_url = 'https://www.openstreetmap.org';
my $overpass_api_url = 'http://overpass-api.de/api/interpreter';
my $overpass_api_url = 'https://overpass-api.de/api/interpreter';

my $show_unchanged;
my $quiet;
Expand Down
6 changes: 3 additions & 3 deletions miscsrc/downloadosm
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ our $VERSION = "0.04";
use constant TIMEOUT => 60;

use vars qw($OSM_API_URL);
$OSM_API_URL = "http://www.openstreetmap.org/api/0.6";
#$OSM_API_URL = "http://xapi.openstreetmap.org/api/0.6";
$OSM_API_URL = "https://api.openstreetmap.org/api/0.6";
#$OSM_API_URL = "https://xapi.openstreetmap.org/api/0.6";
#$OSM_API_URL = "http://osmxapi.hypercube.telascience.org/api/0.6";
#$OSM_API_URL = "http://www.informationfreeway.org/api/0.6";
#$OSM_API_URL = "https://www.informationfreeway.org/api/0.6";

my $ltlnqr = qr{([-+]?\d+(?:\.\d+)?)};
my $osm_download_file_qr = qr{/download_$ltlnqr,$ltlnqr,$ltlnqr,$ltlnqr\.osm(?:\.gz|\.bz2)?$};
Expand Down
2 changes: 1 addition & 1 deletion miscsrc/osmelem2bbd
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use Strassen::Core;
sub get_node ($);
sub get_way ($);

my $api_root_url = 'https://www.openstreetmap.org/api/0.6';
my $api_root_url = 'https://api.openstreetmap.org/api/0.6';

GetOptions
or die "usage: $0 osmURL ...\n";
Expand Down
2 changes: 1 addition & 1 deletion miscsrc/osmhistory
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ GetOptions(
)
or die "usage: $0 [--no-pager] osmobject/id\n";

my $api_root_url = "https://www.openstreetmap.org/api/0.6";
my $api_root_url = "https://api.openstreetmap.org/api/0.6";

my $elem = shift
or die qq{Please specify osm element (e.g. "way/12345")\n};
Expand Down
2 changes: 1 addition & 1 deletion miscsrc/osmnotes2bbd.pl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

use Strassen::Core;

my $osm_notes_rooturl_fmt = "http://www.openstreetmap.org/api/0.6/notes.json?limit=%d&closed=0&bbox=%s,%s,%s,%s";
my $osm_notes_rooturl_fmt = "https://api.openstreetmap.org/api/0.6/notes.json?limit=%d&closed=0&bbox=%s,%s,%s,%s";

my $o;
my $bbox;
Expand Down
Loading