如何在iPhone中使用Geoapi搜索特定城市的商家?

发布于 2024-10-14 16:27:18 字数 107 浏览 4 评论 0原文

任何人都可以帮助我如何使用 Geoapi 获取特定城市的可用企业列表。是否可以使用 GeoApi 中的特定城市检索企业列表。如果可能,请让我知道如何使用示例 mql 查询或 url 链接来做到这一点。

Can anyone help me how to get list of business available in particular city using Geoapi.Is it possible to retrieve list of business using particular city in GeoApi. If it is possible please let me know how to do that with sample mql query or url link.

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

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

发布评论

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

评论(1

野生奥特曼 2024-10-21 16:27:18

是的,您可以检索您所在位置周围的商家列表,您的查询如下,

MQL ​​查询: {"lat": 37.75629, "lon": -122.4213, "radius": " 1km", "entity": [{"type": "business", "guid": null}]}

GeoAPI url 查询:
http://api.geoapi.com/v1/q?q=%7B%22lat%22%3A+37.75629%2C+%22lon%22%3A+-122.4213%2C+%22radius%22%3A+ %221km%22%2C+%22entity%22%3A+%5B%7B%22type%22%3A+%22business%22%2C+%22guid%22%3A+null%7D%5D%7D&apikey=demo&pretty=1

这是一个示例

要了解 GeoAPI 的工作原理,这里有一些基本查询。将查询放入浏览器中以查看其 JSON 格式的结果。

* Search from a latitude, longitude coordinate pair:
      o http://api.geoapi.com/v1/search?lat=37.75647&lon=-122.421218&radius=0.1km&apikey=demo&pretty=1
* Get the parent entities of a lat, lon pair:
      o http://api.geoapi.com/v1/parents?lat=37.563475&lon=-122.323219&apikey=demo&pretty=1
* Get an entitys parents (in this case, the entity is Ritual Roasters in San Francisco, and its parents are the neighborhood and city its located in):
      o http://api.geoapi.com/v1/e/ritual-coffee-roasters-san-francisco-ca-94110/parents?apikey=demo&pretty=1
* Get information about a business (in this case, Ritual Roasters in San Francisco):
      o http://api.geoapi.com/v1/e/ritual-coffee-roasters-san-francisco-ca-94110/view/listing?apikey=demo&pretty=1
* Get information about an entity (in this case, San Francisco):
      o http://api.geoapi.com/v1/e/san-francisco-ca?apikey=demo&pretty=1

Yes you can retrieve list of business around your location, your query will be as follows,

MQL query: {"lat": 37.75629, "lon": -122.4213, "radius": "1km", "entity": [{"type": "business", "guid": null}]}

GeoAPI url query:
http://api.geoapi.com/v1/q?q=%7B%22lat%22%3A+37.75629%2C+%22lon%22%3A+-122.4213%2C+%22radius%22%3A+%221km%22%2C+%22entity%22%3A+%5B%7B%22type%22%3A+%22business%22%2C+%22guid%22%3A+null%7D%5D%7D&apikey=demo&pretty=1

Here is an example

To get a feel for how GeoAPI works, here are some basic queries. Put the query in browser to see its JSON-formatted result.

* Search from a latitude, longitude coordinate pair:
      o http://api.geoapi.com/v1/search?lat=37.75647&lon=-122.421218&radius=0.1km&apikey=demo&pretty=1
* Get the parent entities of a lat, lon pair:
      o http://api.geoapi.com/v1/parents?lat=37.563475&lon=-122.323219&apikey=demo&pretty=1
* Get an entitys parents (in this case, the entity is Ritual Roasters in San Francisco, and its parents are the neighborhood and city its located in):
      o http://api.geoapi.com/v1/e/ritual-coffee-roasters-san-francisco-ca-94110/parents?apikey=demo&pretty=1
* Get information about a business (in this case, Ritual Roasters in San Francisco):
      o http://api.geoapi.com/v1/e/ritual-coffee-roasters-san-francisco-ca-94110/view/listing?apikey=demo&pretty=1
* Get information about an entity (in this case, San Francisco):
      o http://api.geoapi.com/v1/e/san-francisco-ca?apikey=demo&pretty=1
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文