Google地理编码格式地址包含十六进制字符

时间:2018-04-27 09:27:00

标签: google-maps google-geocoder

我正在使用google geocode API,对于某些地址,我在formatted_address字段中看到十六进制值。

Google地理编码API的结果:

formatted_address" : "[Geocode \"8776\" (0xccbaa26b30dcc864), Feature (TYPE_ESTABLISHMENT_POI) \"Drum Oil & Propane Co\" [en LP] (0xfcffc173b794989a)

有人可以帮我理解可能的原因。

1 个答案:

答案 0 :(得分:0)

这是Google的错误。

我尝试使用地理编码器:

https://geocoder.ca/57ARMSTRONGRD+PLYMOUTH+MA+02360?geoit=xml

得到了:



{
  "standard": {
    "staddress": "Armstrong Rd",
    "stnumber": "57",
    "prov": "MA",
    "city": "Plymouth",
    "postal": "02360-4806",
    "confidence": "1"
  },
  "longt": "-70.695522",
  "TimeZone": "America\/New_York",
  "AreaCode": "508,774",
  "latt": "41.956622"
}




 <geodata>
 <latt>41.956622</latt>
 <longt>-70.695522</longt>
 <AreaCode>508,774</AreaCode>
 <TimeZone>America/New_York</TimeZone>
 <standard>
 <stnumber>57</stnumber>
 <staddress>Armstrong Rd</staddress>
 <city>Plymouth</city>
 <prov>MA</prov>
 <postal>02360-4806</postal>
 <confidence>1</confidence>
 </standard>
 </geodata>

这是json中的相同结果:

https://geocoder.ca/57ARMSTRONGRD+PLYMOUTH+MA+02360?geoit=xml&json=1

{
"standard": {
"staddress": "Armstrong Rd",
"stnumber": "57",
"prov": "MA",
"city": "Plymouth",
"postal": "02360-4806",
"confidence": "1"
 },
 "longt": "-70.695522",
 "TimeZone": "America\/New_York",
 "AreaCode": "508,774",
 "latt": "41.956622"
 }

https://geocoder.ca/57ARMSTRONGRD+PLYMOUTH+MA+02360