Google Maps on Desktop Application

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Nakia
Posts: 425
Joined: Tue Feb 21, 2012 8:57 am

Google Maps on Desktop Application

Post by Nakia » Tue Mar 26, 2013 12:29 am

Hi,

Can someone possibly explain what the best way to complete the following is within a Desktop Application (Building first Desktop App, only done Mobile in the past)

1: Open up Google Maps with the Application and let the user navigate to a point (abilit to search would be great but not needed)
2: Let the user drop a "Pin" at that point then get the browser to export the coordinates of that Pin to a Variable
(this variable will then be placed into a file and sent to my Mobile App)

Any advice offered would be fantastic and greately appreciated!!

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Google Maps on Desktop Application

Post by Simon » Tue Mar 26, 2013 12:43 am

Hi Nakia,
Have you looked at revBrowser? There is an example stack under Help.
It's a web browser so it will act just like using any other browser (you can search the website).

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Nakia
Posts: 425
Joined: Tue Feb 21, 2012 8:57 am

Re: Google Maps on Desktop Application

Post by Nakia » Tue Mar 26, 2013 3:01 am

Thanks Simon, yet to do too much with Desktop Applications so very "green"..

Seeing it is a WebBrowser as sych how would I retreieve the lat and long of the pin I drop?

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: Google Maps on Desktop Application

Post by sturgis » Tue Mar 26, 2013 3:04 am

You can pull stuff out of the revbrowser instance using javascript. Look at revBrowserExecuteScript in the dictionary.

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Google Maps on Desktop Application

Post by Simon » Tue Mar 26, 2013 4:01 am

Don't forget to look up Google Maps APIs.
Just in-case you don't want to use a browser object.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Nakia
Posts: 425
Joined: Tue Feb 21, 2012 8:57 am

Re: Google Maps on Desktop Application

Post by Nakia » Tue Mar 26, 2013 7:23 am

Found a great test stack made by Dixie quite some time ago which has helped a lot :D
Just trying to find out now the options to enable the ability to drop pins and subsequently fetch the Lat & Long

Post Reply