0

I found some SO questions that were useful, but I need a complete reference guide for this api and its url paramters.

this one

Edited

intent = new Intent(Intent.ACTION_VIEW,
Uri.parse("http://maps.google.com/maps?" + "saddr="
                            + journey.getSourceGPSX() + ","
                            + journey.getSourceGPSY() + "&daddr="
                            + journey.getDestinationGPSX() + ","
                            + journey.getDestinationGPSY()));

intent.setClassName("com.google.android.apps.maps",
                    "com.google.android.maps.MapsActivity");
Community
  • 1
  • 1
Siddharth
  • 8,842
  • 13
  • 79
  • 133

2 Answers2

1

There is a full api reference here:

https://developers.google.com/maps/

Android is here:

https://developers.google.com/maps/documentation/android/

There is also a bunch of webservices you might find helpful here:

https://developers.google.com/maps/documentation/webservices/

Is that what you are looking for?

Chris Bampton
  • 199
  • 1
  • 8
1

Not sure I'd really class it as an API as such, you're just referencing a URI. I don't think there's much else you can pass in the way of query parameters to that URI other than the various formats of source and destination that Google supports everywhere. For example this post mentions a few different formats:

is there a way to pass arguments to google map's get directions functionality?

But apart from that I don't think you're missing any 'hidden' ones.

Community
  • 1
  • 1
PeterJ
  • 3,316
  • 18
  • 45
  • 60
  • `https://maps.google.com/maps?saddr=new+york&daddr=baltimore&saddr=harrisburg&daddr=ohio` how to you get this working ? multiple routes ? – Siddharth Dec 11 '12 at 04:47
  • I don't think multiple routes are possible. But I'm not 100% sure of that so it might be worth seeing if you can find any examples using multiple destinations. Just to clarify I mean using a simple web link, if you use the full API as in the other answer it's a different story. – PeterJ Dec 11 '12 at 05:08
  • Nope, not supported. Damn!! I am trying to avoid writing a million lines of code to drawlines from a json response. Painful and buggy. – Siddharth Dec 11 '12 at 05:09