为什么我不能通过 URL 使用 SimpleGeo?

发布于 2024-10-09 06:00:05 字数 359 浏览 1 评论 0原文

通过 Google Places API 搜索接收 JSON 数据。

因此,Google Places API 允许我使用简单的“https://maps.googleapis.com/maps/api/place/search/json?location=-33.8670522,151.1957362&” radius=50&client=clientId&sensor=true_or_false&signature=SIGNATURE”

(注意,包括签名/密钥)。

为什么 SimpleGeo 不允许同样的功能?是否可以? SimpleGeo 使用的所有服务器端代码的目的是什么?

问候, 瑞安

So, Google Places API allows me to receive JSON data through a Google Places API search using a simple:

"https://maps.googleapis.com/maps/api/place/search/json?location=-33.8670522,151.1957362&radius=50&client=clientId&sensor=true_or_false&signature=SIGNATURE"

(note, includes signature/key).

Why does SimpleGeo not allow this same feature? Is it possible? What is the purpose of all of this server side code that SimpleGeo uses?

Regards,
Ryan

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

迷路的信 2024-10-16 06:00:05

SimpleGeo 最近发布了 JavaScript SDK,其中包含 JSONP API。这应该允许您完全按照您的要求进行操作 - 纯粹从客户端从其 Context 和 Places API 请求只读信息,并使用一个简单的密钥来验证请求。

我认为从服务器端应用程序访问 SimpleGeo 的数据仍有很多用途——并非所有开发人员都编写纯粹的 JavaScript 客户端应用程序——但我同意这个新的 SDK 将帮助很多开发人员。

此外,如果您正在寻找对 JSON 资源的直接 REST 访问而不需要任何客户端库,那么这也是存在的。请参阅 SimpleGeo 有关 API 端点 的文档。

SimpleGeo has recently announced a JavaScript SDK, which includes a JSONP API. This should allow you to do exactly what you're asking -- requesting read-only information from their Context and Places APIs purely from the client side with a simple key to authenticate the request.

I think there are still plenty of purposes for accessing SimpleGeo's data from a server-side application -- not all developers are writing purely JavaScript client-side applications -- but I agree that this new SDK will help a lot of developers.

Also, if you're looking for straightforward REST access to JSON resources without any client libraries, that's also present. See SimpleGeo's documentation on API endpoints.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文