From 40b31b09b96eddd40785ef9bc8228f57b2e49575 Mon Sep 17 00:00:00 2001 From: jmacwhyte Date: Wed, 15 Feb 2017 15:32:04 -0800 Subject: [PATCH] added adr microformat to PlaceDetailsResult --- CONTRIBUTORS | 1 + places.go | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 46e14fa..56a2931 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -8,4 +8,5 @@ Brett Morgan @domesticmouse Chris Broadfoot @broady +James MacWhyte @jmacwhyte Sam Thorogood @samthor diff --git a/places.go b/places.go index ac08725..247f1be 100644 --- a/places.go +++ b/places.go @@ -453,8 +453,10 @@ type PlaceDetailsRequest struct { type PlaceDetailsResult struct { // AddressComponents is an array of separate address components used to compose a given address. AddressComponents []AddressComponent `json:"address_components"` - // FormattedAddress is the human-readable address of this place + // FormattedAddress is the human-readable address of this place. FormattedAddress string `json:"formatted_address"` + // AdrAddress is the address in the "adr" microformat. + AdrAddress string `json:"adr_address"` // FormattedPhoneNumber contains the place's phone number in its local format. For example, the formatted_phone_number for Google's Sydney, Australia office is (02) 9374 4000. FormattedPhoneNumber string `json:"formatted_phone_number"` // InternationalPhoneNumber contains the place's phone number in international format. International format includes the country code, and is prefixed with the plus (+) sign. For example, the international_phone_number for Google's Sydney, Australia office is +61 2 9374 4000.