1

我不确定为什么 Google Places API 会返回 lat,lng = 0,0 的以下结果......它不应该是在本初子午线和赤道交叉点获取地点,而不仅仅是地理坐标为的少数城市显然不接近 0,0,例如:

{
   “html_attributions”:[],
   “结果” : [
      {
         “几何学” : {
            “地点” : {
               “纬度”:40.7483170,
               “液化天然气”:-73.9855290
            }
         },
         “图标”:“http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png”,
         “id”:“2bf00f9f5e2e3e50098fd611f9fde65cdb453f20”,
         "name" : "帝国大厦",
         “评分”:4.40,
         "reference" : "CnRrAAAAtzNwdIo2Dcf4rhroiiyCyJqarCL7FZQvXxvz6vdYda1MYaxmjfwPdd2k_nyyq1c-urcOZ2GIg3r5GqmjtguEQNlKiYu8706vHJKiZCax-COsvbWHS3WBLWiZ3uYoY2wGclP3D-2loob4rNFa_XavERIQaVGvVVfsV3ayD8D9_-dtqhoUmZInS1ufM4ErRz4s76nX5Wr8PUA",
         “类型”:[“游乐园”,“机构”],
         “附近”:“纽约第五大道 350 号”
      },
      {
         “几何学” : {
            “地点” : {
               “纬度”:34.0554640,
               “液化天然气”:-118.249760
            }
         },
         “图标”:“http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png”,
         “id”:“5cf64f5eb238d7e3740c59a49938ceb7c5b08646”,
         “名称”:“Gedung Konser Walt Disney”,
         “评分”:4.40,
         "reference" : "CnRwAAAAfgumgAs3d8qOytOVUEgMBSbddJ80fSzX7JbsmxHvwZRkto-_tLF1VIgkswR3VRMBRfC5fs4JNcgVEhb2KQbRMFFC1FImwRlSM6igdR5TWpYiP2PlP1tA80SPF8lR_7TNM_fS0GyDM9Y45nE59S-WCxIQKbEIn_MR0ASWWc47N0yx1BoUDbjx_g1pzUAIzfTI7-UcsVdr8n4",
         “类型”:[“机构”],
         “附近”:“洛杉矶大大街 111 号”
      },
      {
         “几何学” : {
            “地点” : {
               “纬度”:40.7599740,
               “液化天然气”:-73.9800970
            }
         },
         “图标”:“http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png”,
         “id”:“89dd7f0c82efc14f18954f8abf2925515037927a”,
         “名称”:“无线电城音乐厅”,
         “评分”:3.90,
         "reference" : "CnRsAAAAz4THB7lZ9nA3Il7YOwfFubKCR91gBo8jHNlXUQWUw7JEliOwoNsvgQOAtECHb7RttpnRFJj2gwMq4aFYR7ndaTlp53rNMpoFp4DDS_EVA1WlioGNqFGEi4vzkQbqetoJ9VN1O9cJg2YJpL7TuR9dNxIQWwsOVjW_tUB5sGlMYSlaSxoUxYYdcSHox7CfUmZ7P0Rc7zV7_e0",
         “类型”:[“机构”],
         “附近”:“1260 6 Avenue, New York”
      },
      {
         “几何学” : {
            “地点” : {
               “纬度”:38.8895020,
               “液化天然气”:-77.0353030
            }
         },
         “图标”:“http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png”,
         “id”:“2598a3577d35a8f9ce6cc12c6c20d59fe3f9d1fc”,
         "name" : "华盛顿纪念碑",
         “评分”:3.50,
         "reference" : "CnRqAAAAtAuqKVfxJ_ni_49Wg8THdIjk7sK7C3wVMIjoSVPSriDr6Tht5-RvBScdFB_VasYBMR1BO_TESlyHQfCONNh3c2xjVsUPwFLruSPpKZCgA1gZY5eE3amDsFhjB2gZc2zQatv3dBbcW5HxWwK38KDn2xIQj20Ad9IMHh2A15niVVW-ihoUzwSKPeInBDipmiHe-oX0eS751_c",
         “类型”:[“公园”,“机构”],
         “附近”:“2 15th Street Northwest, Washington DC”
      },
      {
         “几何学” : {
            “地点” : {
               “纬度”:40.7075260,
               “液化天然气”:-74.0111520
            }
         },
         “图标”:“http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png”,
         “id”:“010cda7c358ae874784ef918d1c19e2643c4fec0”,
         “名称”:“纽约证券交易所监管公司”,
         “评分”:3.40,
         "reference" : "CnRqAAAAR8SX_5aQ60pZEffiLIbXTxoXVCdzpIVleLXseSizaa08ZyAV-6HKFoXP_3eFKBcVewUuTgdxX0JJu8idVtjvF-FJnK5-RWt0jp1K2tB2YwOpwHNI7bXnYxqVEATcyH1Y8ft5SXh2uaqRL-SoKwC2hhIQTpljtBc_hALik0ECJD3syhoUmzoPIYGREYJMw1qA4PbeW9yR7_s",
         “类型”:[“机构”],
         “附近”:“纽约华尔街 11 号”
      },
      {
         “几何学” : {
            “地点” : {
               “纬度”:36.1573480,
               “液化天然气”:-115.1483340
            }
         },
         “图标”:“http://maps.gstatic.com/mapfiles/place_api/icons/lodging-71.png”,
         “id”:“729e341abb54a12a11d84573d977df0f41acca7b”,
         "name" : "拉斯维加斯漂亮小猫",
         “评分”:4.30,
         "reference" : "CnRvAAAA1KMLOeN6uzyj-QGAP5Mqg_qe5IDN3Zl9ID_to_pyaxGD5ERHsLsmvGAT801ST89xdHSXk1Tga950V5RBJX5FGopZ2B7rFIBNDPFxrB9wK4mYgaZiwR-m_j1rdzx9EkEPe3JMEnBZq-Y8djh_V2tX8hIQTk931oTYQPGyVCL1rQQDaRoUzhWJ_Cq1UFvKAhNansZJVO4ipOI",
         “类型”:[“住宿”,“机构”],
         “附近”:“拉斯维加斯大道 3798 号,拉斯维加斯”
      },
      {
         “几何学” : {
            “地点” : {
               “纬度”:40.829750,
               “液化天然气”:-73.92613799999999
            }
         },
         “图标”:“http://maps.gstatic.com/mapfiles/place_api/icons/stadium-71.png”,
         “id”:“4120a48a1c6bae3f896b9022fbe45bbdbb041c8d”,
         “名称”:“洋基体育场”,
         “评分”:4.40,
         "reference" : "CnRlAAAAsHJIlsQHJmkIYUOW_6m1l8th1F5qtG9ULSn6i9-kAc5cjoxRvDmpeqze14ErqEcxVZPT4wLyU_S845VpDzeJH9XeQHFZWUIr_uu8U01xD9VO4TghUfmBikJN5Ap4cn7zf3BPgBnqVcymBMWeOsr0ABIQbNrG__9TSUduj-lSHV8OGBoUW3867le_CNRd-5ZncKMGgu1y-Q4",
         “类型”:[“体育场”,“机构”],
         “附近”:“布朗克斯东 161 街 1 号”
      },
      {
         “几何学” : {
            “地点” : {
               “纬度”:36.1475610,
               “液化天然气”:-115.155430
            }
         },
         “图标”:“http://maps.gstatic.com/mapfiles/place_api/icons/lodging-71.png”,
         “id”:“7a80fe02f232f2f8fb62953d7eca557722b58012”,
         “名称”:“平流层”,
         “评分”:3.60,
         "reference" : "CnRjAAAAjLLI-i_uFl-t4VGhFXpbA8GOiu5NxFKPvjQVludTJBowR-McYhjy8Xm1sfIi5eDCT4M4nPCJ8Zr-ixYI_lfNVviGAy9qiteA5_KYvlbzVBnDY9Cg2Dl0tjcQeiRy6HoXlXihb_TiOb5pcqQlJyfg_xIQ4HS8Ie0KuGfZxgOBQzBwiBoU2FjrN08mGMZRnFw96ebkGB9iM0c",
         “类型”:[“住宿”,“机构”],
         "vicinity" : "2000 South Las Vegas Boulevard, 拉斯维加斯"
      },
      {
         “几何学” : {
            “地点” : {
               “纬度”:36.0989050,
               “液化天然气”:-115.1754280
            }
         },
         “图标”:“http://maps.gstatic.com/mapfiles/place_api/icons/lodging-71.png”,
         “id”:“5415e1b4a3f278a0f654cecaefd3a8c9c18de6cf”,
         "name" : "Buca di Beppo - 拉斯维加斯 - Excalibur",
         “评分”:3.70,
         "reference" : "CoQBfAAAAH4lqpHGSoEJj1NpWM9G9TFv9wd8h1iupqzjFckBVlqWp3Py0-zg0l2uEIQq_1rFDzVIBa7r4uzKSmbj8x_djw2ytBjwdVZHuzPxNH0B6-OsoXgq5VXh_ej0_TQytprNHXkeO6VEhi5REkjtbzOqrwO4n-LwvZ8jdqGZtE-I8BM_EhC--WZHCmvg4s4AQqyBX8pMGhTZfTcTmEPVKyUIGn0J4EcscR6LTA",
         “类型”:[“住宿”,“机构”],
         "vicinity" : "3850 Las Vegas Blvd. South, Second Floor, Las Vegas"
      },
      {
         “几何学” : {
            “地点” : {
               “纬度”:34.1025420,
               “液化天然气”:-118.3416570
            }
         },
         “图标”:“http://maps.gstatic.com/mapfiles/place_api/icons/movies-71.png”,
         “id”:“46e0f0dc849234110d70dce04cacefa982f1898a”,
         “名称”:“柯达剧院”,
         “评分”:4.0,
         "reference" : "CnRkAAAA9l1BF_OHV88D0oLmjP0eeB9lvlfSuMoH_Clpk0xN2rprdAs-NVajY82CkWk6q5Xgy_-WaKMadnDFWg1dmvBlM9CSG9YjlEsuGdkGAQ_2JT5BKcQZAsgO-LCInrNGQhHb6UA6EINa_oeWIT5yX2wFgxIQCQYutFUfkTt9lUFGv5Q1qRoUE3TXdS-d8wLXrLijExuCRRS7pKs",
         “类型”:[“电影剧院”,“机构”],
         “附近”:“好莱坞大道 6801 号好莱坞,加利福尼亚州 90028”
      },
      {
         “几何学” : {
            “地点” : {
               “纬度”:38.8885120,
               “液化天然气”:-77.0201260
            }
         },
         “图标”:“http://maps.gstatic.com/mapfiles/place_api/icons/museum-71.png”,
         “id”:“6233faaa08c8457051ce7a2ae89260885c3d099e”,
         “名称”:“国家航空航天博物馆”,
         “评分”:3.90,
         "reference" : "CoQBcwAAANunAGpqdW9ux0r61QRMDJJVpXbcWfzQXYc9Lfsjo11AwnOT00qvjgNEML24mmTlo-fwxPqAori2FXzCz75nrk5ZthIoY6rUwT2XqMo_1wLdeIYzI8HBTB5d80lMZCDyYPNIyUXK1BQxkDARI-Djcvm0cxcsd5pkM5nKUcALHClREhDw1unCtEDqrdvaCyiwqO5JGhRlEXlguPNDn8-OhkUM-e2zVIfJHQ",
         “类型”:[“博物馆”,“机构”],
         “附近”:“华盛顿西南独立大道 595 号”
      },
      {
         “几何学” : {
            “地点” : {
               “纬度”:40.7653850,
               “液化天然气”:-73.9796820
            }
         },
         “图标”:“http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png”,
         “id”:“ff0ea6469ef95cea73f323b77e18bc2065fb3f3f”,
         “名称”:“卡内基音乐厅”,
         “评分”:3.80,
         "reference" : "CnRjAAAAxCg7QA4KqEWMXOJnLZ4tZj_HefkwzsO_c1yGPbgQZ6hEvbKZymhQ6Fr4wffzF8hpRFr9w6teszOKu-IQW0OqUc4jQaHVz0iErmhMAzIbuX7C_QHmnTn8gVKC4K_Zlp4vDS5AL9-GzhEkj_rYmyg3FhIQ7YW9PNRhxLTkVvi3wBLALxoUiEwWkeBsTM_FrUybFcqpToYbtS0",
         “类型”:[“机构”],
         “附近”:“纽约第七大道 881 号”
      },
      {
         “几何学” : {
            “地点” : {
               “纬度”:37.7714720,
               “液化天然气”:-122.4686720
            }
         },
         “图标”:“http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png”,
         “id”:“d0f545120ffb6baec5da1ab9e5a9c19f49115dc5”,
         “名称”:“旧金山美术馆:设施租赁”,
         “评分”:4.10,
         "reference" : "CpQBiwAAAL6id9WjmuDsGHBq1ikNCGmYv1i652crIWcDwPNOMazjrCYvde35uVNQIsdzRDcEBIEXgzIm3Vi9CmUPLevsigYOAd3TQ61z5huCv_53jSlITWzcKsaOa_ZAQQPZyMpYPwhkxnYESU-4GFzzoLFzH1-afqCKcwrFAauKCDcTvwy2qfYPXfio1grIEKfBln83qRIQrmVEtNeLqO5n9WOjjXhJMhoUfZkJU9kN8CAIOY__1Y3syoPB_1k",
         “类型”:[“餐厅”,“博物馆”,“食物”,“机构”],
         “附近”:“50 Hagiwara Tea Garden Drive, San Francisco”
      },
      {
         “几何学” : {
            “地点” : {
               “纬度”:40.6709750,
               “液化天然气”:-73.96363599999999
            }
         },
         “图标”:“http://maps.gstatic.com/mapfiles/place_api/icons/museum-71.png”,
         “id”:“50536f2341830cb033e6342fb2e123d88fb5262b”,
         “名称”:“布鲁克林博物馆”,
         “评分”:4.30,
         "reference" : "CnRmAAAAurnWOaSKJ3xC5JCHa0RpCbJ4o36w6z2FDWePJNM2wPhvlp9PyyLNe_REHiA82IlTTaoUKXSJRecUr-CW88YfzNsEZ20GQFXm21PKkgrrF1vP0NL6S-wb4xbr_k5vNnZgW1_5rVf7AsPg_02xRDc2BBIQRIERe2yg8Xi94SOFussv3hoU1ym_ci8XQ7W1US6tdpOTvtMMDCw",
         “类型”:[“博物馆”,“机构”],
         “附近”:“布鲁克林东部大道 200 号”
      },
      {
         “几何学” : {
            “地点” : {
               “纬度”:41.881320,
               “液化天然气”:-87.674280
            }
         },
         “图标”:“http://maps.gstatic.com/mapfiles/place_api/icons/stadium-71.png”,
         “id”:“99dbf0f7af6e6fd7fe9f48b5cfd5d9374d40eee7”,
         “名称”:“麦迪逊与联合中心(1900 W)”,
         “评分”:4.60,
         "reference" : "CoQBdwAAAIwXyy6eDjcW_4Bub5XvmGHiqMJ-Stl1QIYLE9y7i2vC1TCCAUXGYB9y-ydP4rs7A3YP5ux5Eh5dfWpczrUEIz7FFhBXHCcu7mKFGx8ifLXTg6NWjLtXGSBMk5UOkuMlQ759B4UGufhgLNCPXdrPqO6kTMZG8VQ1tenNlPLPtkWrEhB2WMI2FjYGBmlCHBYayIFGGhT2uist4FA0sRJmBj3o4iALDgBT9Q",
         “类型”:[“体育场”,“机构”],
         “附近”:“芝加哥西麦迪逊街 1901 号”
      },
      {
         “几何学” : {
            “地点” : {
               “纬度”:36.1214190,
               “液化天然气”:-115.1704240
            }
         },
         “图标”:“http://maps.gstatic.com/mapfiles/place_api/icons/lodging-71.png”,
         “id”:“8fdee88bfe0bc1d70eaf2a1c8528934528344298”,
         "name" : "威尼斯人",
         “评分”:4.10,
         "reference" : "CnRjAAAAMATHKiVvbWVf4PLp8RwYQB_pHCu_3Fua1MQ7Gl5B1xNDHU9WkICPeu__TGD5Hfgb47b9V6bCxEkgLFbi21dwOThtDjtby4tDH2HnL7iba6_CxYrgMOrP-WOuh4HMPqCU5Fu5Tm2mttHLgNQ3H2eCKBIQ99KyfeOqL8Ke8eF_IQWehxoUsjo-AknTVGd_LpuAIcBlKFtw0LY",
         “类型”:[“住宿”,“机构”],
         "vicinity" : "3355 Las Vegas Boulevard South, Las Vegas"
      },
      {
         “几何学” : {
            “地点” : {
               “纬度”:40.8647670,
               “液化天然气”:-73.9317990
            }
         },
         “图标”:“http://maps.gstatic.com/mapfiles/place_api/icons/museum-71.png”,
         “id”:“8edf774a665aeb294a6d6cf8df4405f4824f7e4f”,
         “名称”:“修道院”,
         “评分”:3.90,
         "reference" : "CnRkAAAAoXh2hlwgjHoK57WLbYJXZylMK2E96FRHa_TzNBEq4vxTUHrq_eguI58Yo0iQRBtFX3ro5U8OdwzMreDpgUTnVFMPRCzxWyshdL-tCaEjIWK-3VpdCHh4imG3x_fjLfqgFi4Ndf48gctZhrOg-0RNdhIQnpmnyP-W9TN1HmvwTeNtUBoUQ2BQXpiGHWltpzK1zKGdq8FIYzk",
         “类型”:[“博物馆”,“机构”],
         “附近”:“纽约玛格丽特科尔宾大道 99 号”
      },
      {
         “几何学” : {
            “地点” : {
               “纬度”:38.8959010,
               “液化天然气”:-77.0552390
            }
         },
         “图标”:“http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png”,
         “id”:“66763890699cdd158cff72bffe0f7ab48c755a43”,
         “名称”:“约翰·肯尼迪表演艺术中心”,
         “评分”:4.50,
         "reference" : "CpQBiQAAAK5sBdti2mRClLvnnl7-P_sAs0ptzxUvT4YWZ9bYP4wyIPHzvSv2D3DAhx_tK7g_jsKM7qnbIhXrJW_9Bb7XU9XexgIsm6rSRkTGuN70JRy5d4ztsl8ZVaYBjSewb0AS98TB84E5Xx-l9IsKhx3hypgCFI5u-CuC6vlmjVNdR-u-cgHTx1B5HTZpkTXIm5muqxIQ2lINhfQKQsl6YzCKMzLGNxoUMxrl7OJKpqEBCRxUu7A1GrsiWto",
         “类型”:[“机构”],
         “附近”:“华盛顿西北 F 街 2700 号”
      },
      {
         “几何学” : {
            “地点” : {
               “纬度”:40.782820,
               “液化天然气”:-73.9591570
            }
         },
         “图标”:“http://maps.gstatic.com/mapfiles/place_api/icons/museum-71.png”,
         “id”:“aa09742d854b00192daed833e2a56750587e8185”,
         “名称”:“所罗门·R·古根海姆博物馆”,
         “评分”:3.10,
         "reference" : "CoQBcgAAAOrwNzRmsnbhv193CwDcwpw0PlTBBEGoYm6ksdTk5Ro73hmIJnRsOqXHvfKrDoXCLC_MHwW9gjEEp_t789Afn_sRj8dn1IlQJ8TontYBEf-pLXmNNt104Y14fAsHykQ2JyifjuUoCsykKt_E04AIM2A1H939uAMJPc6R0VEgaZNYEhBCqGL-r9yCh4zZjLqafPekGhRE0aNDwrGBz9XYHMmeudjhFjlsIQ",
         “类型”:[“博物馆”,“机构”],
         “附近”:“纽约第五大道 1071 号”
      },
      {
         “几何学” : {
            “地点” : {
               “纬度”:40.8042110,
               “液化天然气”:-73.96284199999999
            }
         },
         “图标”:“http://maps.gstatic.com/mapfiles/place_api/icons/worship_general-71.png”,
         “id”:“b7f595c8882d8b5c347f124cb06be5a18ba794d9”,
         “名称”:“圣约翰大教堂”,
         “评分”:4.0,
         "reference" : "CoQBfgAAAFuadX23-mmKRnASp9ylUzW0Ghz3d8CuqZ55tX2T4BrODOTVDpOZn55xKqjuemfE-7hrdYOfaLff4RKkEzCkbhTR5UX8iGDCcMHQq2O7aWoqA2tsa5dCBkta8eTy-Bpry8zf2iaRVEZbx1Wfq2Xg59vvu07bryUX4sPVNRO5wKkyEhAXHfHMMaiMKjkvhezqXDk1GhQMHvS79gfVmdb2EQYKWL3df6Y-ag",
         “类型”:[“教堂”、“礼拜场所”、“机构”]、
         “附近”:“纽约阿姆斯特丹大道 1047 号”
      }
   ],
   “状态”:“好的”
}

API文档在这里

调用此 url 以获得上述结果:

https://maps.googleapis.com/maps/api/place/search/json?location=0,0&radius=5&sensor=false&key=[insert key here]

有人知道为什么会给出上述结果吗?


奇怪的是,我去过所有这些地方......我想知道这些 0,0 结果是基于会话还是基于 IP 地址......

4

2 回答 2

1

这似乎是 Google Places API 中的一个错误。我已经在内部提交了。

对于 Google Places API 中的未来错误,您可以通过 Google Maps API 问题跟踪器将它们作为“Places API - Bug”提交: http://code.google.com/p/gmaps-api-issues/issues/entry?模板=地方%20API%20-%20Bug

于 2012-03-06T03:28:56.373 回答
1

这一定是数据库错误,对于 0/0,我得到了相同的结果。

我玩了一下,对于 0.1/0.1 我得到了这个有趣的结果(请注意,标记实际上是在 0.1/0.1 ) http://fiddle.jshell.net/doktormolle/aZrvs/33/show/我报告错误的标记,也许它们很快就会被删除

来自巴西、墨西哥、比利时、德国和中国的地方现在都在几内亚湾了^^

当您单击标记,然后单击“详细信息”时,您会看到这些错误也出现在官方 google-places-pages 上。

于 2012-02-21T18:05:22.150 回答