NAME
Yandex::Geo::Company - Convenient representation of company from Yandex Maps
VERSION
version 0.01
DESCRIPTION
Class that is more convenient realization of company
It has following properties:
url # website of company, type = string
phones # company numbers, type = arrayref
links # links to pages on social networks, type = arrayref
vk # link to vk, type = arrayref
address # location, type = str
postalCode # postal code, type = str (6 digits)
Also, this class implements two methods: from_json and from_geo_json
E.g. if you make a query
my $yndx_geo = Yandex::Geosearch->new( apikey => 'f33a4523-6c94-48df-9b41-5c5c6f250e98');
my $res = $yndx_geo->get(text => 'макетные мастерские', only_city => 'ROV');
Yandex::Geo::Company::from_json( $res->to_json )
and
Yandex::Geo::Company::from_geo_json( $res )
do the same.
from_geo_json
Accept Geo::JSON::FeatureCollection and return array of Yandex::Geo::Company
Yandex::Geo::Company::from_geo_json($json);
from_json
Parse regular json to arrayref of Yandex::Geo::Company objects
NAME
Yandex::Geo::Company
AUTHOR
Pavel Serikov <pavelsr@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2018 by Pavel Serikov.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.