Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Google Maps

Featured Replies

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.

Can't you click the 'link' button on the right hand side which gives you the hard address?

no i dont think you can, but you can have the input in the bubble like this:

 

New York

  • 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>

well sure, just take the url a part for a second

 

 

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

  • 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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.