OGeek|极客世界-中国程序员成长平台

标题: ios - 来自Apple Maps for Objective C的Google Maps自动完成功能? [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-12 10:49
标题: ios - 来自Apple Maps for Objective C的Google Maps自动完成功能?

我需要在 Objective C 中实现城市名称搜索的自动完成功能。

目前我基本上会从这里使用 Google map 自动完成功能:https://developers.google.com/places/documentation/autocomplete

但我不喜欢显示 powered by google - Logo 。

这就是我在这里问的原因,有没有办法使用 Apple Maps API 或类似的方法来实现自动完成功能?

感谢您的建议



Best Answer-推荐答案


看看这个 - Yahoo YQL console .

您可以在此处进行这样的查询 - 它为您提供所有以 San 开头的位置:

select * from geo.places where text="San%"

生成的 JSON/XML 可以作为您尝试显示的自动完成结果的数据源。

正如我所见,它们最多允许一些非商业用途的免费查询,除此之外they charge .您可以查看herehere .

关于ios - 来自Apple Maps for Objective C的Google Maps自动完成功能?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24821316/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4