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); } 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);