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.
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?
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]
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]