Skip to content

Commit

Permalink
Switch to api.openstreetmap.org API host (#1242)
Browse files Browse the repository at this point in the history
* Update osmtool.pl

* Update border_follower.pl
  • Loading branch information
danieldegroot2 authored Dec 27, 2023
1 parent d85f71e commit 63eeeaf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions navit/script/osm/border_follower.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
}

Expand Down
2 changes: 1 addition & 1 deletion navit/script/osm/osmtool.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 63eeeaf

Please sign in to comment.