NAME

XML::NewsML_G2::Location - a location (city, region, country, ...)

SYNOPSIS

my $at = XML::NewsML_G2::Location->new
    (name => 'Austria', qcode => 'at', relevance => 90, iso_code => 'AT')

my $vie = XML::NewsML_G2::Location->new
    (name => 'Vienna', qcode => 'vie', relevance => 100, parent => $at)

ATTRIBUTES

name
qcode
relevance

Value (0..100) specifying how relevant the location is for the news item

parent

points to the broader location (e.g., the city's country)

direct

whether the location has been manually specified by the editor

iso_code

for countries, the code in the ISO 3166-1a2 vocabulary - see http://www.iso.org/iso/home/standards/country_codes/country_names_and_code_elements.htm for a reference

AUTHOR

Philipp Gortan <philipp.gortan@apa.at>

LICENCE AND COPYRIGHT

Copyright (c) 2013, APA-IT. All rights reserved.

See XML::NewsML_G2 for the license.