GeocodeResult

ผลการค้นหาพิกัดภูมิศาสตร์มีข้อมูลทางภูมิศาสตร์เกี่ยวกับสถานที่

การแสดง JSON
{
  "place": string,
  "placeId": string,
  "location": {
    object (LatLng)
  },
  "granularity": enum (Granularity),
  "viewport": {
    object (Viewport)
  },
  "bounds": {
    object (Viewport)
  },
  "formattedAddress": string,
  "postalAddress": {
    object (PostalAddress)
  },
  "addressComponents": [
    {
      object (AddressComponent)
    }
  ],
  "postalCodeLocalities": [
    {
      object (LocalizedText)
    }
  ],
  "types": [
    string
  ],
  "plusCode": {
    object (PlusCode)
  }
}
ช่อง
place

string

ตัวระบุสถานที่แบบเต็มที่สมบูรณ์สำหรับผลการค้นหานี้ ในรูปแบบ "//places.googleapis.com/places/{placeID}" ดูรายละเอียดเพิ่มเติมได้ที่ https://developers.google.com/maps/documentation/places/web-service/place-id

placeId

string

รหัสสถานที่สำหรับผลการค้นหานี้

location

object (LatLng)

ละติจูดและลองจิจูดของที่อยู่นี้

granularity

enum (Granularity)

รายละเอียดของสถานที่

viewport

object (Viewport)

วิวพอร์ตที่เหมาะสำหรับแสดงผลลัพธ์พิกัดภูมิศาสตร์

bounds

object (Viewport)

กล่องขอบเขตของที่อยู่

formattedAddress

string

ที่อยู่ที่มีการจัดรูปแบบเป็นบรรทัดเดียว

postalAddress

object (PostalAddress)

ที่อยู่ในรูปแบบที่อยู่ไปรษณีย์

addressComponents[]

object (AddressComponent)

คอมโพเนนต์ที่ซ้ำกันสำหรับระดับสถานที่ตั้งแต่ละระดับ

postalCodeLocalities[]

object (LocalizedText)

รายการสถานที่ทั้งหมดที่อยู่ในรหัสไปรษณีย์

ระบบจะป้อนข้อมูลนี้เฉพาะเมื่อผลลัพธ์เป็นประเภท "postal_code"

types[]

string

ชุดแท็กประเภทสําหรับผลการค้นหานี้ เช่น "political" และ "administrative_area"

ดูรายการค่าที่เป็นไปได้ทั้งหมดได้ที่ตาราง ก และตาราง ข ที่ https://developers.google.com/maps/documentation/places/web-service/place-types

plusCode

object (PlusCode)

Plus Code ของสถานที่ในรหัสพิกัดภูมิศาสตร์นี้

AddressComponent

คอมโพเนนต์ที่มีโครงสร้างซึ่งประกอบกันเป็นที่อยู่ที่มีการจัดรูปแบบ หากมีข้อมูลนี้

การแสดง JSON
{
  "longText": string,
  "shortText": string,
  "types": [
    string
  ],
  "languageCode": string
}
ช่อง
longText

string

คำอธิบายแบบเต็มหรือชื่อของคอมโพเนนต์ที่อยู่ เช่น องค์ประกอบที่อยู่สำหรับประเทศออสเตรเลียอาจมีชื่อเต็มว่า "ออสเตรเลีย"

shortText

string

ชื่อแบบย่อขององค์ประกอบที่อยู่ (หากมี) เช่น องค์ประกอบที่อยู่สำหรับประเทศออสเตรเลียอาจมีชื่อย่อว่า "AU"

types[]

string

อาร์เรย์ที่ระบุประเภทขององค์ประกอบที่อยู่

ดูรายละเอียดเพิ่มเติมได้ที่ https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types

languageCode

string

ภาษาที่ใช้จัดรูปแบบคอมโพเนนต์นี้ในรูปแบบ CLDR

LocalizedText

ข้อความที่แปลเป็นภาษาท้องถิ่นในภาษาหนึ่งๆ

การแสดง JSON
{
  "text": string,
  "languageCode": string
}
ช่อง
text

string

สตริงที่แปลแล้วในภาษาที่ตรงกับ languageCode ด้านล่าง

languageCode

string

รหัสภาษา BCP-47 ของข้อความ เช่น "en-US" หรือ "sr-Latn"

ดูข้อมูลเพิ่มเติมได้ที่ http://www.unicode.org/reports/tr35/#Unicode_locale_identifier