X-Git-Url: https://git.openstreetmap.org./dns.git/blobdiff_plain/abb152df07840ebde87b36015026c9c0d87991ba..737e782ae6f889765e6ce9d4257f01d12a3019a5:/bin/mkgeo?ds=inline diff --git a/bin/mkgeo b/bin/mkgeo index 881f268..ce0ff2f 100755 --- a/bin/mkgeo +++ b/bin/mkgeo @@ -205,7 +205,7 @@ my @json; # Open output files my $zonefile = IO::File->new("> include/${zone}.js") || die "$!"; -my $jsonfile = IO::File->new("> json/${zone}.json") || die "$!"; +my $jsonfile = IO::File->new("> json/${zone}.openstreetmap.org.json") || die "$!"; # Output headers $zonefile->print("var \U${zone}\E_RECORDS = [\n"); @@ -273,12 +273,14 @@ foreach my $cluster (sort { $a->{name} cmp $b->{name} } values %$clusters) { my $name = $cluster->{name}; - output_server($zonefile, "${name}.${zone}", $cluster); - if (@{$cluster->{servers}} > 1) { output_server($zonefile, "${name}-%02d.${zone}", $cluster); } + else + { + output_server($zonefile, "${name}.${zone}", $cluster); + } } # Output the GeoJSON text