使用pre-安装了谷歌地图,而不是一个自己的活动使用意图?自己的、是一个、而不、意图

2023-09-08 08:40:39 作者:╰↗每天都在笑

嘿,伙计们, 我只是想知道羯羊它是posssible传递geocoords的谷歌地图应用程序,双意图或类似的东西。

Hey guys, I just wanted to know wether it is posssible to pass geocoords to the google maps app bis intents or something similar.

我写了一个应用程序,通过展示自己的路线,COORDS等,但不会是更优雅问谷歌地图本身显示这个?

I wrote an app for displaying route, coords and so on by myself, but wouldn't it be more elegant to ask google maps itself for displaying this?

我不知道这是可能的,但也许,你可以回答这个问题。

I don't know if this is possible, but maybe, one of you can answer this question.

如果这是可能的,是不是也可以要求谷歌地图我的当前位置到计算路径?

IF THIS IS POSSIBLE, is it also possible to ask google maps to calculate the route by my CURRENT POSITION?

这将是巨大的,如果你可以告诉我一个骨架/哑code。我不知道怎么意图本来的样子。

It would be great if one of you can show me a skeleton/dummy code. I have no idea how the intents would have to look like.

尼斯的问候, Poeschlorn

Nice greetings, Poeschlorn

推荐答案

在谷歌意图的文档是在这里:的 http://developer.android.com/intl/fr/guide/appendix/g-app-intents.html

The documentation on Google Intents is here: http://developer.android.com/intl/fr/guide/appendix/g-app-intents.html

不幸的是,它是(据我所知)目前仅限于简单地显示一个位置,而不是一个路由。然后,用户可以使用该位置绘制自己的路线,虽然。

Unfortunately, it is (to my knowledge) currently limited to simply displaying a location, not a route. The user could then use that location to plot their own route, though.