Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package DDG::Goodie::StayMap;
- # ABSTRACT: Accommodations on the map
- use strict;
- use DDG::Goodie;
- triggers start => "rental";
- zci is_cached => 0;
- zci answer_type => "stay_map";
- # Handle statement
- handle remainder => sub {
- my $address = $_ unless '';
- my $plaintext = "Accommodations in $address";
- return $plaintext, structured_answer => {
- data => {
- address => $address,
- },
- meta => {
- sourceUrl => 'https://www.stay22.com/',
- sourceName => 'Stay22',
- },
- templates => {
- group => 'info',
- options => {
- content => 'DDH.stay_map.content',
- chompContent => 1,
- },
- },
- };
- };
- 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement