Google将place_id的api搜索结果与place_id返回不同的位置 [英] Google place api search result with place_id returns different location with place_id

查看:155
本文介绍了Google将place_id的api搜索结果与place_id返回不同的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用google位置api,但它会以不同的place_id返回值。
我已考虑过此博客: https://developers.google.com/places/documentation / search



我已经请求过这样的地点ID:
https://maps.googleapis.com/maps/api/place/details/json?key=AAIS ...



在这个网址中,你可以看到place_id是EiJ ...。

但是在返回json,我收到了不同的place_id。



place_id:AASS ...,
reference:df ... p>

当我尝试过参考时,情况是一样的。



我错了什么?
这是不同的place_id相同的位置吗?

感谢您的帮助...

解决方案

1)绝不要在公共论坛上发布您的API密钥。去找一个新的。
2)的引用已被弃用,所以你不需要包含它
3)EiJG ...并不像一个Placeid那样 。我的猜测是,您正试图查找一个不存在的值,并且您正在收到奇怪的行为。



运行地方搜索并获取Placeid并尝试再次。您最初没有发布您搜索的内容,因此无法验证EiJ ...是否是真正有效的Placeid。


I'm using google places api, but it returns the value with different place_id. I have considered this blog : https://developers.google.com/places/documentation/search

I have requested with place id like this : https://maps.googleapis.com/maps/api/place/details/json?key=AAIS...

In this url, you can see that the place_id is "EiJ..."

But in the returning json, i have received different place_id.

"place_id" : "AASS...", "reference" : "df..."

When I have tried with reference, it was the same.

What did I wrong? Is this the same location with different place_id?

Thanks for your help...

解决方案

1) Never post your API key on a public forum. Go get yourself a new one. 2) reference has been deprecated, so you don't need to include it 3) EiJG... doesn't look like a Placeid. My guess is that you are trying to look up a value that doesn't exist and you're getting strange behavior.

Run a Place Search and get the Placeid and try again. You haven't posted what you searched for initially so it's impossible to verify that EiJ... really is a valid Placeid.

这篇关于Google将place_id的api搜索结果与place_id返回不同的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆