db->latlon_precision)
if $lon =~ /\./;
my $result= $sdb->find_at($lat, $lon, $rad);
use JSON::XS;
my $j= JSON::XS->new->canonical->utf8->allow_blessed->convert_blessed;
my %seen_roads;
while (my ($k
it)
has id => ( is => 'rw' );
has type => ( is => 'rw' );
has tags => ( is => 'rw' );
sub TO_JSON {
my $self= shift;
my %data= %$self;
for (keys %data) {
delete $data{$_}
if $_ =~ /^[^a-z
warnings;
use File::Spec::Functions;
use FindBin;
use lib catdir($FindBin::Bin, '..', 'lib');
use JSON::XS;
use Geo::SpatialDB;
use Geo::SpatialDB::Import::OpenStreetMap;
use Geo::SpatialDB::Storage::
>new(
storage => Geo::SpatialDB::Storage::LMDB_Storable->new(
path => $sdb_path,
)
);
my $j= JSON::XS->new->canonical->allow_blessed->convert_blessed;
if ($key) {
my $x= $sdb->storage->get($key