WebService::Mappoint is a client SOAP implementation for Mappoint, Microsoft's geographic maps web service, based on SOAP::Lite.
SYNOPSIS
Map fetch example for use with Mappoint 3.0 service.
use WebService::Mappoint;
use MIME::Base64;
my $render = new WebService::Mappoint::Render();
my $map;
$map = $render->GetMap(
specification => [
DataSourceName => 'MapPoint.EU',
Options => [
Format => [
Height => 320,
Width => 320
],
],
Views => [
'MapView:ViewByScale' =>
[
CenterPoint =>
[ Latitude => 37.7632,
Longitude => -122.439702 ],
MapScale => 100000000
],
],
Pushpins => [
Pushpin =>
[
IconName => '176',
IconDataSource => 'MapPoint.Icons',
PinID => 'san_francisco',
Label => 'San Francisco',
ReturnsHotArea => 'false',
LatLong => [ Latitude => 37.7632,
Longitude => -122.439702 ],
]
]
] );
my $image = decode_base64($map->result->{MapImage}{MimeData}{Bits});
open( GIF, ">san_francisco.gif" );
print( GIF $image );
Product's homepage
Requirements:
· Perl