Here we have the urls of the Beer Mapping API referenced and we have comments on the request parameters and comments on the types of responses you should expect when using these urls.

You can check out examples of code using the Beer Mapping API here.

Locquery Service

(May Return Multiple Locations.)
http://beermapping.com/webservice/locquery/API_KEY/piece

This service should be used to search for Locations by querying the location name. Partials will work.
This function will return multiple locations depending on the search query given.

This query can be made either with a location name or with a location id.
The location name could possibly return more than one location, but location id's are all unique so they will only return one location or none if that id is not being used.

SimpleXMLElement Object
(
    [location] => SimpleXMLElement Object
        (
            [id] => 1000
            [name] => Piece Brewpub
            [status] => Brewpub
            [reviewlink] => http://beermapping.com/maps/reviews/reviews.php?locid=1000
            [proxylink] => http://beermapping.com/maps/proxymaps.php?locid=1000&d=5
            [blogmap] => http://beermapping.com/maps/blogproxy.php?locid=1000&d=1&type=norm
            [street] => 1927 West North Avenue
            [city] => Chicago
            [state] => IL
            [zip] => 60622
            [country] => United States
            [phone] => (773) 772-4422
            [overall] => 86.1905
        )

)

reviewlink: is the review page on beermapping.com
proxylink: is a map showing the location and all locations within a specific proximity. The default proximity of this map is 5 miles.
blogmap: is the url of a proximity map that is intended to be embedded in an iframe and it can be posted in a blog or site.


Loccity and Locstate Service

(May Return Multiple Locations.)
http://beermapping.com/webservice/loccity/API_KEY/lyons,co
http://beermapping.com/webservice/locstate/API_KEY/co

This service should be used to search for Locations when given a city or a city,state. Partials will work.
This function will return multiple locations depending on the search query given.

SimpleXMLElement Object
(
    [location] => SimpleXMLElement Object
        (
            [id] => 972
            [name] => Oskar Blues Grill and Brewery
            [status] => Brewpub
            [reviewlink] => http://beermapping.com/maps/reviews/reviews.php?locid=972
            [proxylink] => http://beermapping.com/maps/proxymaps.php?locid=972&d=5
            [blogmap] => http://beermapping.com/maps/blogproxy.php?locid=972&d=1&type=norm
            [street] => 303 Main Street
            [city] => Lyons
            [state] => CO
            [zip] => 80540
            [country] => United States
            [phone] => (303) 823-6685
            [overall] => 90.5555
        )

)

reviewlink: is the review page on beermapping.com
proxylink: is a map showing the location and all locations within a specific proximity. The default proximity of this map is 5 miles.
blogmap: is the url of a proximity map that is intended to be embedded in an iframe and it can be posted in a blog or site.


Locmap Service

(Should Return One Unique Location.)
http://beermapping.com/webservice/locmap/API_KEY/1000

This service should be used to return coordinate and map information based on the location id given.
Location Id's are unique and should return only one location.

SimpleXMLElement Object
(
    [location] => SimpleXMLElement Object
        (
            [name] => Piece Brewpub
            [status] => Brewpub
            [lat] => 41.910336
            [lng] => -87.675972
            [map] => northcentral
            [altmap] => chicago
        )

)

map: this will be the main map that this location will be found upon.
altmap: some locations (Breweries and Brewpubs) can be found on multiple maps. altmap is the second map where this location can be found.


Locscore Service

(Should Return One Unique Location.)
http://beermapping.com/webservice/locscore/API_KEY/1000

This service should be used to return score information based on the location id given.
Location Id's are unique and should return only one location.

SimpleXMLElement Object
(
    [location] => SimpleXMLElement Object
        (
            [overall] => 86.1905
            [selection] => 4.4285714285714
            [service] => 4.25
            [atmosphere] => 4.25
            [food] => 4.2916666666667
            [reviewcount] => 7
            [fbscore] => 4.6666666666667
            [fbcount] => 12
        )

)

reviewcount This is the number of times this location has been reviewed by users
fbscore: facebook.com score from our Breweries I've Visited application. This is an averaged score from all visits.
fbcount: The number of facebook.com users who have logged a visit to this location.


Locimage Service

(May Return Multiple Image Objects.)
http://beermapping.com/webservice/locimage/API_KEY/1000

This service should be used to return image information based on the location id given.

SimpleXMLElement Object
(
    [location] => Array
        (
            [0] => SimpleXMLElement Object
                (
                    [imageid] => 67
                    [directurl] => http://beermapping.com/maps/reviews/images.php?img=67
                    [imageurl] => http://beermapping.com/maps/reviews/images/locations/PieceTaplist.jpg
                    [width] => 320
                    [height] => 240
                    [thumburl] => http://beermapping.com/maps/reviews/images/resizer/image.php/PieceTaplist.jpg?width=150&height=150&cropratio=1:1&quality=90&image=/maps/reviews/images/locations/PieceTaplist.jpg
                    [caption] => The Taplist at Piece - June 2007
                    [credit] => BeerPrincess
                    [crediturl] => http://beermapping.com/maps/reviews/reviewlist.php?uid=26
                    [imagedate] => 2007-06-11 10:24:22
                    [score] => 0
                )

            [1] => SimpleXMLElement Object
                (
                    [imageid] => 1103
                    [directurl] => http://beermapping.com/maps/reviews/images.php?img=1103
                    [imageurl] => http://beermapping.com/maps/reviews/images/locations/piecefront.jpg
                    [width] => 450
                    [height] => 600
                    [thumburl] => http://beermapping.com/maps/reviews/images/resizer/image.php/piecefront.jpg?width=150&height=150&cropratio=1:1&quality=90&image=/maps/reviews/images/locations/piecefront.jpg
                    [caption] => The sign above the front entry
                    [credit] => beerinator
                    [crediturl] => http://beermapping.com/maps/reviews/reviewlist.php?uid=1
                    [imagedate] => 2008-03-14 08:16:09
                    [score] => 1
                )

            [2] => SimpleXMLElement Object
                (
                    [imageid] => 1104
                    [directurl] => http://beermapping.com/maps/reviews/images.php?img=1104
                    [imageurl] => http://beermapping.com/maps/reviews/images/locations/piecetaps.jpg
                    [width] => 640
                    [height] => 480
                    [thumburl] => http://beermapping.com/maps/reviews/images/resizer/image.php/piecetaps.jpg?width=150&height=150&cropratio=1:1&quality=90&image=/maps/reviews/images/locations/piecetaps.jpg
                    [caption] => The taps and King Gambrinus
                    [credit] => beerinator
                    [crediturl] => http://beermapping.com/maps/reviews/reviewlist.php?uid=1
                    [imagedate] => 2008-03-14 08:16:32
                    [score] => 0
                )

            [3] => SimpleXMLElement Object
                (
                    [imageid] => 3073
                    [directurl] => http://beermapping.com/maps/reviews/images.php?img=3073
                    [imageurl] => http://beermapping.com/maps/reviews/images/locations/IMG_0066.jpg
                    [width] => 480
                    [height] => 360
                    [thumburl] => http://beermapping.com/maps/reviews/images/resizer/image.php/IMG_0066.jpg?width=150&height=150&cropratio=1:1&quality=90&image=/maps/reviews/images/locations/IMG_0066.jpg
                    [caption] => The Bar
                    [credit] => Dirt
                    [crediturl] => http://beermapping.com/maps/reviews/reviewlist.php?uid=2044
                    [imagedate] => 2009-06-26 17:11:02
                    [score] => 0
                )

            [4] => SimpleXMLElement Object
                (
                    [imageid] => 3074
                    [directurl] => http://beermapping.com/maps/reviews/images.php?img=3074
                    [imageurl] => http://beermapping.com/maps/reviews/images/locations/IMG_0067.jpg
                    [width] => 480
                    [height] => 360
                    [thumburl] => http://beermapping.com/maps/reviews/images/resizer/image.php/IMG_0067.jpg?width=150&height=150&cropratio=1:1&quality=90&image=/maps/reviews/images/locations/IMG_0067.jpg
                    [caption] => The Stage
                    [credit] => Dirt
                    [crediturl] => http://beermapping.com/maps/reviews/reviewlist.php?uid=2044
                    [imagedate] => 2009-06-26 17:11:27
                    [score] => 0
                )

            [5] => SimpleXMLElement Object
                (
                    [imageid] => 3075
                    [directurl] => http://beermapping.com/maps/reviews/images.php?img=3075
                    [imageurl] => http://beermapping.com/maps/reviews/images/locations/IMG_0068.jpg
                    [width] => 480
                    [height] => 360
                    [thumburl] => http://beermapping.com/maps/reviews/images/resizer/image.php/IMG_0068.jpg?width=150&height=150&cropratio=1:1&quality=90&image=/maps/reviews/images/locations/IMG_0068.jpg
                    [caption] => Another Eating Area
                    [credit] => Dirt
                    [crediturl] => http://beermapping.com/maps/reviews/reviewlist.php?uid=2044
                    [imagedate] => 2009-06-26 17:11:46
                    [score] => 0
                )

            [6] => SimpleXMLElement Object
                (
                    [imageid] => 3076
                    [directurl] => http://beermapping.com/maps/reviews/images.php?img=3076
                    [imageurl] => http://beermapping.com/maps/reviews/images/locations/IMG_0082.jpg
                    [width] => 480
                    [height] => 360
                    [thumburl] => http://beermapping.com/maps/reviews/images/resizer/image.php/IMG_0082.jpg?width=150&height=150&cropratio=1:1&quality=90&image=/maps/reviews/images/locations/IMG_0082.jpg
                    [caption] => Their Awards
                    [credit] => Dirt
                    [crediturl] => http://beermapping.com/maps/reviews/reviewlist.php?uid=2044
                    [imagedate] => 2009-06-26 17:12:11
                    [score] => 0
                )

            [7] => SimpleXMLElement Object
                (
                    [imageid] => 3077
                    [directurl] => http://beermapping.com/maps/reviews/images.php?img=3077
                    [imageurl] => http://beermapping.com/maps/reviews/images/locations/IMG_0091.jpg
                    [width] => 480
                    [height] => 360
                    [thumburl] => http://beermapping.com/maps/reviews/images/resizer/image.php/IMG_0091.jpg?width=150&height=150&cropratio=1:1&quality=90&image=/maps/reviews/images/locations/IMG_0091.jpg
                    [caption] => Most Recent Menu 6/26/2009
                    [credit] => Dirt
                    [crediturl] => http://beermapping.com/maps/reviews/reviewlist.php?uid=2044
                    [imagedate] => 2009-06-26 17:13:05
                    [score] => 0
                )

            [8] => SimpleXMLElement Object
                (
                    [imageid] => 3733
                    [directurl] => http://beermapping.com/maps/reviews/images.php?img=3733
                    [imageurl] => http://beermapping.com/maps/reviews/images/locations/PieceL.jpg
                    [width] => 600
                    [height] => 800
                    [thumburl] => http://beermapping.com/maps/reviews/images/resizer/image.php/PieceL.jpg?width=150&height=150&cropratio=1:1&quality=90&image=/maps/reviews/images/locations/PieceL.jpg
                    [caption] => Tap List - 06/09
                    [credit] => BahHumBrew
                    [crediturl] => http://beermapping.com/maps/reviews/reviewlist.php?uid=148
                    [imagedate] => 2009-10-27 16:10:43
                    [score] => 0
                )

        )

)

directurl: this is the link to the full sized image on beermapping.com.
imageurl: this is the direct image that can be included on your site.
thumburl: this is our generated thumbnail sized image for the full image that can be included on another site.
crediturl: this is the link to the beermapping.com user who uploaded the image originally.
imagedate: this is the date and time when the image was uploaded.


 

Beer Mappers Online:
38 Guests, 1 User
Beer Traveler