OpenTripPlanner-for-Android icon indicating copy to clipboard operation
OpenTripPlanner-for-Android copied to clipboard

Offer OTP Android to resolve map/address intents

Open vreixo opened this issue 11 years ago • 2 comments

I have seen that pressing on a contact address in the contacts app that is present in my device an intent to go to that direction is sent (I think that this app it's from the mobile manufacturer not from stock Android, but I suppose that will be present in other apps).

In my device this intent can be managed by Google Maps, Google Earth, HopStop, Offi journey planner, ... So, I think that will be good to add OTP there.

Also with this other apps that would like to make some trip planning will be able to intercommunicate with OTP (OBA for example?).

vreixo avatar Nov 01 '13 16:11 vreixo

Yes, this is a good idea, and something I've been meaning to ticket for a while.

Here's a good place to start with docs: http://developer.android.com/training/basics/intents/filters.html

For viewing a single location, we can support the geo: format, as Google Maps does (see Google Maps category here).

For planning a trip with two locations (origin/destination), I don't think I've seen an Intent or standard format for this. So, we might have to define our own, similar to what is done here for Google Maps.

barbeau avatar Nov 01 '13 19:11 barbeau

And, for single location, we should also support address too, as you say.

barbeau avatar Nov 01 '13 19:11 barbeau