LC for Android: Retrieve center lat n lng from LC browser using google maps?
Barry G. Sumpter
barrysum at bigpond.net.au
Tue Apr 24 16:47:49 EDT 2012
Thanks to Peter and Jacqueline for the replies.
Yes, I can get the initial content of a web page into LC.
how-do-i-get-the-content-of-a-url-on-a-web-server-into-revolution
http://lessons.runrev.com/s/lessons/m/4071/l/7523-how-do-i-get-the-content-o
f-a-url-on-a-web-server-into-revolution
In my case that would be the lat n lng of my current position.
And NOT the location I'm after.
I'm trying to capture the lat n lng of another location that I have centred
on the map.
So the map has changed say 10 times since I've initialized the map with my
current position.
i.e. todays' coffee shop is here and tomorrows' coffee shop is there.
Each time the map changes
the lat n lng and the geo location (address) data changes.
So once I've decided the map is displaying the correct positions with lat n
lng and address.
I want to push a button and capture that latest data.
Screen scraping would be the most obvious
but I can't get to the text nor the HTMLText of the latest content state
of the browser with LC4A.
Nor can I get to the clipboard.
Nor can I create java events to capture into LC4A.
And further positive constructive suggestions would be greatly appreciated.
tia
-------------
13. LC for Android: Retrieve center lat n lng from LC browser
using google maps? (Barry G. Sumpter)
20. Re: LC for Android: Retrieve center lat n lng from LC browser
using google maps? (Peter M. Brigham, MD)
26. Re: LC for Android: Retrieve center lat n lng from LC browser
using google maps? (J. Landman Gay)
------------------------------
Message: 13
Date: Tue, 24 Apr 2012 13:53:54 +1000
From: "Barry G. Sumpter" <barrysum at bigpond.net.au>
To: <use-livecode at lists.runrev.com>
Subject: LC for Android: Retrieve center lat n lng from LC browser
using google maps?
Message-ID: <000c01cd21cd$de76eac0$9b64c040$@bigpond.net.au>
Content-Type: text/plain; charset="us-ascii"
Hi all,
I'm using the LC for Android browser.
I've got a web page .html that will allow me to pin point a specific
location on a Google map.
The HTML will display the lat n lng of that address and the closest matching
address.
I would like to be able to access that info.
And perhaps save to a db or send an email or sms with it etc.
I'm trying to screen scrape that info off the page.
I see that LC HTMLText property is available for the desktop browser
versions but not for the Android browser.
Anyone have any ideas on how to screen scrape or to retrieve that HTML data
for use in LiveCode for Android?
Or perhaps suggest another method?
tia
http://gmaps-samples-v3.googlecode.com/svn/trunk/draggable-markers/draggable
-markers.html
All my best,
Barry G. Sumpter
------------------------------
Message: 20
Date: Tue, 24 Apr 2012 10:12:10 -0400
From: "Peter M. Brigham, MD" <pmbrig at gmail.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Subject: Re: LC for Android: Retrieve center lat n lng from LC browser
using google maps?
Message-ID: <59D8ECBC-6768-44F9-9389-E188BF33130C at gmail.com>
Content-Type: text/plain; charset=us-ascii
On Apr 23, 2012, at 11:53 PM, Barry G. Sumpter wrote:
Maybe there's something I don't know about the Android platform, but I think
that
put url "http://maps.google.com/whatever.html" into pageHTML
will just put the HTML into the variable, no matter what the platform.
-- Peter
Peter M. Brigham
pmbrig at gmail.com
http://home.comcast.net/~pmbrig
------------------------------
Message: 26
Date: Tue, 24 Apr 2012 11:30:22 -0500
From: "J. Landman Gay" <jacque at hyperactivesw.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Subject: Re: LC for Android: Retrieve center lat n lng from LC browser
using google maps?
Message-ID: <4F96D51E.7060703 at hyperactivesw.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
On 4/23/12 10:53 PM, Barry G. Sumpter wrote:
I haven't tried it, but you might be able to put the url into a variable
instead of into the browser control, parse the variable for the info you
need, and then use mobileControlDo "load" to put the variable into the
browser for display.
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
------------------------------
More information about the use-livecode
mailing list