Reply
Put a map access by train on a website
Old 10-26-2009, 06:05 AM Put a map access by train on a website
Junior Talker

Posts: 3
Trades: 0
Hello,

I'm the webmaster of a school, and I need to create the "Map access" page, that's the page where we tell you how to go to the school, by car, by train and by plane. I've already done the "by car" part, I inserted a google map frame (i have a Google API key) which calculates the trip from any position in the world to the school, perfect.

Now I want to create an interactive page for the "by train" part. Basically, what I want is that the users enter their location in a text box, and that it shows which train/subway to take to come to the nearest station from the school (i know the name of the station of course).
I thought it was possible to do it with Google maps (there's an Iphone app which does it I think), but I have no idea how to do it on a website, so I need your help.

Another idea is to make a link to transilien.com (I live in France, and this is THE website for traveling by train). Go to http://www.transilien.com/web/site, type anything in the first textbox (say "PARIS - GARE DE L'EST") and anything in the seconde textbox (for example "PARIS - GARE DU NORD"). Then click on the green "Trouver" button, and it will show you different trips to go from the starting to the finishing point, it's great. What I want, is that the visitors type their location on the school's website, and click on a button which will bring them to a transilien.com page and show them the ways to come to the school by train. Can anybody help me?

Thanks a lot.
Kurt Gödel is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 10-30-2009, 08:26 AM Re: Put a map access by train on a website
Junior Talker

Posts: 3
Trades: 0
Hello, I will precise a little bit my question:

On the http://www.transilien.com website, I want to change the "Arrivée" textbox's value from an <a href> link from another website. Is it possible.

I tried typing
Code:
javascript:document.getElementById(lieuDepart).value='Hello';
and
Code:
javascript:document.getElementById(RechercheFormSeDeplacer).lieuDepart.value='Hello';
in the adress bar when I was on the transilien website but it didn't work.

Can anyone help me?
Kurt Gödel is offline
Reply With Quote
View Public Profile
 
Old 10-30-2009, 05:04 PM Re: Put a map access by train on a website
Junior Talker

Posts: 3
Trades: 0
Forget the two post above.
I have a new question: (sorry the website is in french, but the problem is simple).

I want to pre-fill the "Arrivée" textbox on the website : http://www.voyages-sncf.com/ with any value, let's say "Hello".

For example, on this link: http://maps.google.fr/maps?f=d&source=s_d&saddr=hello, one of the textboxs is pre-filled with "hello".

I want to do the same thing on the voyages-sncf website.
Why does http://www.voyages-sncf.com/?origin_city=hello not work?

Anyone help me? Thanks a lot.
Kurt Gödel is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Put a map access by train on a website
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.10318 seconds with 13 queries