Google maps from within Corona App

Does anyone know how to have a link to open the google maps application from within a corona app?

Situation would be that i have an address i.e. 5055 dent ave 95128, if you type this into maps.google.com it works. i want to be able to send this information to the google maps application and have the application open up so the user can use the full google maps app to get directions, search around, etc… thanks in advance! [import]uid: 6317 topic_id: 2305 reply_id: 302305[/import]

If you look in the GPS sample code in the “buttonPress” function, you will find that it opens a Google map using Lat/Long. I’m sure you can modify it to use an address or zipcode instead.

-Tom [import]uid: 7559 topic_id: 2305 reply_id: 7038[/import]

Tom,

Is it also possible to load a google map in a fixed size portion of the app within a weboverlay using

native.showWebPopup( x, y, width, height, url [, options] ) ?

Is there any sample code on this?
[import]uid: 2787 topic_id: 2305 reply_id: 7781[/import]

I was looking at Google’s “Maps Javascript API V3” and found this:

http://code.google.com/apis/maps/articles/tutorial-iphone.html

You can ignore the first half about setting up xCode, but there is a sample html application at the bottom that might be helpful. That code should load a map for the devices current location. [import]uid: 10248 topic_id: 2305 reply_id: 8609[/import]

jwwtaker, I’m in the same boat… I have an app whereby I want to get people to the address of a certain location - and so I would like my App to have a GoogleMap or some iOS map pop up and show them where they’re at and where they’re going.

The GPS sample that Tom refers to, opens up a Google Map in the browser - taking people out of the App.

I’m still looking at the code BarkBark is referring to.

There has to be something like this available; I see that you posted back in Oct of 2010 - have you come up with a solution since?

Thanks! [import]uid: 74844 topic_id: 2305 reply_id: 53052[/import]

Unfortunately not my app still opens a new browser window [import]uid: 6317 topic_id: 2305 reply_id: 53097[/import]

UPDATE: Found some great code here - exactly what I needed!!

http://developer.anscamobile.com/content/mapview

Maybe that code will help you too? Not sure your intended functionality. [import]uid: 74844 topic_id: 2305 reply_id: 53107[/import]

tom,
can you give the URL example about GPS sample code in the “buttonPress” function??
[import]uid: 197096 topic_id: 2305 reply_id: 140583[/import]

I was referring to the MapView sample code in the CoronaSDK. SampleCode/Interface/MapView.

For iOS this creates a native MapView and not a web browser. It uses Apple maps in iOS6 and Google Maps in previous releases. Android uses Google Maps. [import]uid: 7559 topic_id: 2305 reply_id: 140687[/import]

tom,
can you give the URL example about GPS sample code in the “buttonPress” function??
[import]uid: 197096 topic_id: 2305 reply_id: 140583[/import]

I was referring to the MapView sample code in the CoronaSDK. SampleCode/Interface/MapView.

For iOS this creates a native MapView and not a web browser. It uses Apple maps in iOS6 and Google Maps in previous releases. Android uses Google Maps. [import]uid: 7559 topic_id: 2305 reply_id: 140687[/import]