On Jan 30, 2:11 pm, Phil Smith <[email protected]> wrote: > I saw this, but I only see examples with directions for pre-set origins. I > need my users to be able to type in their > starting address as a string. Any ideas?
Add a text input element. Use that as the starting address. Mike Williams has some examples for v2 that may help you (that wouldn't really be an API question, more a DHTML/Javascript question): http://econym.org.uk/gmap/directions.htm (may be a little more complicated than you need) A little hunting around in the documentation yields this: http://code.google.com/apis/maps/documentation/javascript/examples/directions-simple.html which uses a select box (change it to an empty text input element). But I see that example in the list Paulo posted. Is that where you are running into trouble? -- Larry > > Thanks, > Phil > > On Jan 30, 2011, at 5:01 PM, Paulo Fernandes wrote: > > > > > I believe that will help you > > >http://code.google.com/intl/en/apis/maps/documentation/javascript/exa... > > > Paulo Fernandes > >http://www.google.com/profiles/paulofernandesjr > >http://twitter.com/paulofernandesj > > +55 11 9797-5974 > > > On Sun, Jan 30, 2011 at 7:54 PM, itsPhil <[email protected]> wrote: > > Hi all, I'm totally new to using any type of API. I'm a self-taught web > > designer (stressing designer over developer). > > > I'm working on a site and am attempting to use the maps API to give > > directions. > > > All I need is a text field where users can type their starting origin. The > > directions are to a bar mitzvah, so the destination will be pre-set. > > > Problem is I have no idea how to do this. I have at least gotten as far as > > making the page, adding the scripts, and calling the map using some demo > > code I found. > > > The map is here:http://www.skyz100.com/directions.html. > > > Thanks in advance to anyone willing and able to help me out! > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Maps JavaScript API v3" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group > > athttp://groups.google.com/group/google-maps-js-api-v3?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Maps JavaScript API v3" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group > > athttp://groups.google.com/group/google-maps-js-api-v3?hl=en.- Hide quoted > > text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
