Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
text API
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Expand all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
hendry  
View profile  
 More options Oct 3 2005, 3:06 pm
From: "hendry" <kai.hen...@gmail.com>
Date: Mon, 03 Oct 2005 05:06:37 -0000
Local: Mon, Oct 3 2005 3:06 pm
Subject: text API
I have a list co-ords I want displayed on Google Maps

http://maps.natalian.org/data.txt

I am too lazy to write my own JavaScript. I was wondering if someone
has already made a simple "text api" for Google Maps.

Or suggest a good place to start...

Best wishes,


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Williams  
View profile  
 More options Oct 3 2005, 4:56 pm
From: Mike Williams <nos...@econym.demon.co.uk>
Date: Mon, 3 Oct 2005 07:56:31 +0100
Local: Mon, Oct 3 2005 4:56 pm
Subject: Re: text API
If you really don't want to convert your text into XML, then I suggest
you start like this:

Grab the XML example code from my tutorial

   http://www.econym.demon.co.uk/googlemaps/basic3.htm

Then make the following changes to the XML processing bit to convert it
to text processing:

* use request.responseText instead of request.responseXML

* rip out all the getElementsBtTagName and getAttribue stuff and replace
it with the string.split() method:

    var gpsDoc = request.responseText;

    // Split it on 'newline' into an array of lines
    var markers = gpsDoc.split('\n');

    // Loop through the lines
    for (var i = 0; i < markers.length; i++) {

        // If empty don't process
        if (!markers[i]){break}

        // Split each line on ':' into an array of parts
        var part = markers[i].split(':');

        // Grab the parts
        var date = part[0];
        var name = part[1];
        var lng = parseFloat(part[2]);
        var lat = parseFloat(part[3]);

        var marker =  new GMarker(new GPoint(lng,lat));
        map.addOverlay(marker);
    }


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
maps.huge.info  
View profile  
 More options Oct 3 2005, 9:54 pm
From: "maps.huge.info" <cor...@gmail.com>
Date: Mon, 03 Oct 2005 11:54:51 -0000
Local: Mon, Oct 3 2005 9:54 pm
Subject: Re: text API
hendry,

Perhaps you should offer to pay someone to do it for you. Lazyness has
its price...

-John

http://maps.huge.info


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Claire  
View profile  
 More options Oct 3 2005, 11:01 pm
From: "Claire" <mclis...@zeesource.net>
Date: Mon, 03 Oct 2005 06:01:11 -0700
Local: Mon, Oct 3 2005 11:01 pm
Subject: Re: text API
try http://www.zeemaps.com


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
zurdo1119  
View profile  
 More options Oct 3 2005, 11:08 pm
From: "zurdo1119" <zurdo1...@fibertel.com.ar>
Date: Mon, 03 Oct 2005 06:08:27 -0700
Local: Mon, Oct 3 2005 11:08 pm
Subject: Re: text API
I strongly recommend you this way: http://www.lazyway.net

zurdo
www.geocoder.com.ar


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
zurdo1119  
View profile  
 More options Oct 3 2005, 11:09 pm
From: "zurdo1119" <zurdo1...@fibertel.com.ar>
Date: Mon, 03 Oct 2005 06:09:47 -0700
Local: Mon, Oct 3 2005 11:09 pm
Subject: Re: text API
I strongly recommend you this way: http://www.lazyway.net

zurdo
www.geocoder.com.ar


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Thomson  
View profile  
 More options Oct 4 2005, 3:46 am
From: "Peter Thomson" <pe...@makemeamap.com>
Date: Mon, 03 Oct 2005 10:46:43 -0700
Local: Tues, Oct 4 2005 3:46 am
Subject: Re: text API
You can pick up a complete javascript set , and create your data from a
web  page form at http://makemeamap.com/

No need to change anything if you don't want to.

Peter


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
haochi.tk/QQS  
View profile  
 More options Oct 4 2005, 7:39 am
From: "haochi.tk/QQS" <haochi.c...@gmail.com>
Date: Mon, 03 Oct 2005 21:39:48 -0000
Local: Tues, Oct 4 2005 7:39 am
Subject: Re: text API
Lazy Way To Sucess.Ha...
As Mike said...
"http://www.econym.demon.co.uk/googlemaps/basic3.htm" helps.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google