I’m just getting started with the google maps API and I feel like I’m reinventing the wheel.
I want to embed a map that starts off centered on the location of the office. On the side of the map are two boxes: “From:” and “To:” The “To:” is already filled in with the office’s address. When the user enters an address and hits “OK”, the embedded map updates to show a driving route. Below, the generated driving directions are displayed.
I know that google offers a really basic embedded map, but it’s not suitable for a professional site, in my opinion. I am definitely prepared (if necessary) to write the code by hand. I just have to believe that this problem has been solved a million times before.
Thanks!
Stuart’s links were very helpful, but were still lacking in a concrete useful tool. I had to merge a few of them together, along with some things I found on the web to create the map I was going for.
Here’s a javascript file that accomplishes what I was trying to do.