简体   繁体   English

短信到iPhone应用-Google Maps

[英]SMS to iPhone app - Google Maps

is there a way to have a Map/GPS app hook into the iPhones SMS reader so that it can parse the message and map to that area? 有没有办法将Map / GPS应用程序挂接到iPhone的SMS阅读器中,以便它可以解析消息并映射到该区域?

Specifically I'm thinking of a situation where I'm looking for someone's house and they text me their address. 具体来说,我正在考虑一种情况,我正在寻找某人的房子,他们给我发了他们的地址。 I would (from the SMS) be able to say "Map This" and that would send the text to the GPS app and get directions from where I am to that location. 我将能够(从SMS中)说出“将此地图映射”,这会将文本发送到GPS应用并获取从我所在位置到该位置的路线。

Obviously there would be some error handling for situations like misspellings, locale names ("Burger King", "Hell"), and city/state guesses, but much of this is already handled by Google Maps. 显然,对于诸如拼写错误,语言环境名称(“汉堡王”,“地狱”)和城市/州的猜测之类的情况,将会有一些错误处理,但是Google Maps已经处理了许多错误。

Mostly I'm wondering how to tie the App to the SMS without having to copy/paste. 通常,我想知道如何将应用程序绑定到SMS而不需要复制/粘贴。

The public SDK doesn't provide an SMS API, so you cannot hook into the SMS messages. 公用SDK不提供SMS API,因此您无法加入SMS消息。 If you are building a location sharing app, you might consider having your own messaging transport layer using the Push Notification functionality. 如果要构建位置共享应用程序,则可以考虑使用“推送通知”功能来拥有自己的消息传递层。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM