November 11, 200817 yr Hey fellows. I want to link someone to a Google Maps page with the destination already filled in and the cursor focused in the "From" field, like so: http://s4.tinypic.com/mueddj.jpg Now, can it be done? At first glance, the answer is "No, that's not possible." But, is it factually or theoretically impossible? Are there truly no means in the coding world that could achieve that end? Thanks.
November 12, 200817 yr Can't you click the 'link' button on the right hand side which gives you the hard address?
November 12, 200817 yr no i dont think you can, but you can have the input in the bubble like this: New York
November 12, 200817 yr Author Wow, you know your stuff, red-X. Thank you. I have another question for you (or any of you), though. Is the following doable: I have a search bar on my website The user types in "Newark NJ" (though it could be anything) When the Search button is clicked, a new window/tab opens (in this case) here Is there anything I can use to do that? A script, black magic, anything? Thanks again. P.S. Do you know why this code doesn't work here when it does in html testers? <a href="http://maps.google.com/maps?f=d&saddr=Newark+NJ&daddr=New+York+NY" target="_blank" rel="nofollow">Newark to New York</a>
November 13, 200817 yr well sure, just take the url a part for a second http://maps.google.com/maps pretty obvious what this does right? ?f=d well i dont know what they do with this variable but its not important &saddr=Newark,+NJ well this appears to be the part we need if we take the words from your search bar and make something like this with php or wathever language youre using for your searchbar to work &saddr=keyword+keyword+keyword &daddr=New+York,+NY and this works pretty much the same only its the destination, but since thatll be the same every search you can keep this part like it is
November 13, 200817 yr Author So it is possible, then? Awesome! Now, I don't currently have a search bar as I wasn't sure if what I wanted was possible or not. Now that I am sure, what would be the best way to go about implementing it? Do I really need a "search bar" since it'll only be doing this one function, or is it the same thing? Googling for the answer didn't turn up much, but maybe I'm not using the right keywords. Where should I look to get a basic input bar for what I want it to do? I don't want to treat you like a crutch, but I really know very little and am still finding my coding legs. Thanks a lot for your help on this, red-X. I'm glad you exist.
Create an account or sign in to comment