Group
Extension

Matches 2

Yandex-Geo ( P/PA/PAVELSR/Yandex-Geo-0.07.tar.gz, PAVELSR, 2018; MetaCPAN )
Yandex-Geo/lib/Yandex/Geo.pm ( view source; MetaCPAN )
SION = '0.07';
use strict;
use warnings;


use LWP::UserAgent;
use URI;
use URI::Escape;
use Geo::JSON;
use Carp;
use utf8;

use Yandex::Geo::Company;


sub cities_bbox {
    return { 'ROV' => '39.535
sponse->status_line;
    }

    Geo::JSON->from_json( $response->decoded_content );

}


sub y_companies {
    my ( $self, $text, %params ) = @_;

    my $geo_json = $self->get( text => $text, %params
 );
    Yandex::Geo::Company::from_geo_json($geo_json);
}

sub _build_params {
    my ( $self, %params ) = @_;

    # Set default parameters

    confess 'No search text provided'
      unless defined
Yandex-Geo ( P/PA/PAVELSR/Yandex-Geo-0.07.tar.gz, PAVELSR, 2018; MetaCPAN )
Yandex-Geo/lib/Yandex/Geo/Company.pm ( view source; MetaCPAN )
 qw{ id name shortName phones postalCode address url vk instagram links longitude latitude };
use JSON::XS;


sub properties {

    # my $self = shift;
    return {
        # set => [ sort keys $self 

        array => [qw/phones links/]    # real properties in capital case
    };
}


sub from_geo_json {
    my $feature_collection = shift;

    my @result;

    for my $f ( @{ $feature_collection->f
result, $company_obj;

    }

    return \@result;

}


sub from_json {
    my $json_str = shift;

    my $res      = decode_json $json_str;
    my $features = @{ $res->{features} };

    my @result;

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.