From 541820815652d3969be05ccd4328139390ca8c7b Mon Sep 17 00:00:00 2001 From: danieldegroot2 <67521919+danieldegroot2@users.noreply.github.com> Date: Wed, 11 Oct 2023 23:39:27 +0200 Subject: [PATCH 1/2] Update osmtool.pl --- navit/script/osm/osmtool.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/navit/script/osm/osmtool.pl b/navit/script/osm/osmtool.pl index 10f50a8edd..8b29bcdd17 100755 --- a/navit/script/osm/osmtool.pl +++ b/navit/script/osm/osmtool.pl @@ -138,5 +138,5 @@ sub command $attr{$key}=$value; shift; } -$api=new Geo::OSM::APIClient(api=>'http://www.openstreetmap.org/api/0.6',%attr); +$api=new Geo::OSM::APIClient(api=>'https://api.openstreetmap.org/api/0.6',%attr); command(@ARGV); From 9a02509d310e28f6e13e2522eecd73f9c41f4df6 Mon Sep 17 00:00:00 2001 From: danieldegroot2 <67521919+danieldegroot2@users.noreply.github.com> Date: Wed, 11 Oct 2023 23:45:10 +0200 Subject: [PATCH 2/2] Update border_follower.pl --- navit/script/osm/border_follower.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/navit/script/osm/border_follower.pl b/navit/script/osm/border_follower.pl index 2ce6997988..b97ee59338 100755 --- a/navit/script/osm/border_follower.pl +++ b/navit/script/osm/border_follower.pl @@ -19,7 +19,7 @@ $type=$ARGV[3]; $alt_type=$ARGV[4]; $revers=0; -$api=new Geo::OSM::APIClient(api=>'http://www.openstreetmap.org/api/0.5'); +$api=new Geo::OSM::APIClient(api=>'https://api.openstreetmap.org/api/0.5'); $wayid=$first_wayid; $path="$first_wayid"; sub error @@ -33,7 +33,7 @@ sub error $lath=$node->{lat}+0.01; $lonl=$node->{lon}-0.01; $lonh=$node->{lon}+0.01; - system("firefox 'http://www.informationfreeway.org/?lat=$lat&lon=$lon&zoom=12&layers=B000F000F' ; wget -O error.osm http://www.openstreetmap.org/api/0.5/map?bbox=$lonl,$latl,$lonh,$lath ; josm error.osm --selection=id:$last"); + system("firefox 'http://www.informationfreeway.org/?lat=$lat&lon=$lon&zoom=12&layers=B000F000F' ; wget -O error.osm https://api.openstreetmap.org/api/0.5/map?bbox=$lonl,$latl,$lonh,$lath ; josm error.osm --selection=id:$last"); exit(1); }