| Geo-Google-StaticMaps-Navigation documentation | view source | Contained in the Geo-Google-StaticMaps-Navigation distribution. |
Geo::Google::StaticMaps::Navigation - generates pagers for Google Static Maps
use Geo::Google::StaticMaps::Navigation;
my $map = Geo::Google::StaticMaps::Navigation->new(
key => "your Google Maps API key",
size => [ 500, 400 ],
center => [ 35.683, 139.766 ], # tokyo station
zoom => 9,
);
my $north_map_url = $map->north->url;
# see Geo::Google::StaticMaps for detailed informations
# of the constructor and the url method.
my $uri = URI->new('http://example.com/map');
my $north_map_pageurl = $map->north->pageurl($uri);
# returns URI for next page with the map on the north like:
# http://example.com/map?lat=36.5666495508921&lng=139.766&zoom=9
Geo::Google::StaticMaps::Navigation generates pagers and nearby map urls for given Google Static Map informations.
returns nearby map object for each direction.
returns zoomed map.
returns URI object with query parameters for the map containing lat, lng, zoom.
returns nearby map. $map->nearby({lat => 1}) is identical to $map->north, and $map->nearby({lng => -1}) is $map->west.
returns zoomed map with given delta. $map->scale( 1 ) is identical to $map->zoom_in, and $map->scale( -1 ) is $map->soom_out.
Nobuo Danjou <nobuo.danjou@gmail.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| Geo-Google-StaticMaps-Navigation documentation | view source | Contained in the Geo-Google-StaticMaps-Navigation distribution. |