Burak has asked for the wisdom of the Perl Monks concerning the following question:

Hi all,

I need to enable RoofTop geocoding with the Mappoint geocoder. I'm using the WebService::Mappoint module. And something like this (see the sample code) seemed logical to enable it but it did not work. Can some of the SOAP experts enlighten me? :)

my $find = WebService::Mappoint::Find->new('mappoint.ini'); # i think that it needs something like this: push @find_options, ResultMask => [RooftopFlag => 'RooftopFlag']; # or this? push @find_options, ResultMask => ['RooftopFlag']; $req = $find->FindAddress(specification => [DataSourceName => $Data +SourceName, InputAddress => \@addre +ss, Options => \@find_optio +ns, ]); my $result = WebService::Mappoint::Result->new($req);
Related parts from the wsdl:
<s:element minOccurs="1" maxOccurs="1" name="ResultMask" type="tns:Fin +dResultMask"> </s:element> <s:simpleType name="FindResultMask"> &#8722; <s:list> &#8722; <s:simpleType> &#8722; <s:restriction base="s:string"> <s:enumeration value="LatLongFlag"> </s:enumeration> <s:enumeration value="EntityFlag"> </s:enumeration> <s:enumeration value="AddressFlag"> </s:enumeration> <s:enumeration value="BestMapViewFlag"> </s:enumeration> <s:enumeration value="MatchDetailsFlag"> </s:enumeration> <s:enumeration value="RooftopFlag"> </s:enumeration> </s:restriction> </s:simpleType> </s:list>
References: Thanks in advance

Replies are listed 'Best First'.
Re: How to enable rooftop geocoding with Mappoint?
by Burak (Chaplain) on Feb 27, 2008 at 15:19 UTC
    well... I think I'll hit my head against a wall. Only thing needed is to pass the flags as a space separated string. D'Oh!