Input Box Help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stylishjm
    New Member
    • Jan 2010
    • 27

    Input Box Help

    Basically im using google maps with my taxi website to calculate prices between a and b.
    Ive recently found an auto suggest feature on the net which would make the page look alot more appealing.

    My only problem (apart from trying to add the code to my exisiting code) is that when users type the road name for example, it would initially bring up the addresses from other countrys other than the UK until i write UK or the postcode at the end.

    Previously I made it so that after the user finishes typing in the boxes and presses submin, it adds " UK" to the end of the addresses they typed before letting googlemaps process the addresses. Check here for example.

    Now, with the autosuggest feature, that method will not work as I would need the " UK" to be entered before the address. It would have to be there before anything is typed in the box sort of like this "UK garth road nw2" but with the UK hidden so when the user types it would only be "garth road nw2".

    Is there a way to add a hidden "UK " to the input boxes before anything is typed in there. I would need it hidden so that it will look alot more tidy.

    Thanks
  • harrierdh
    New Member
    • Jan 2010
    • 16

    #2
    Your link did not work.

    Comment

    • gits
      Recognized Expert Moderator Expert
      • May 2007
      • 5390

      #3
      you could add it to the request before sending ... therefor we would need to see how you send the request. i'm even quite sure that you should be able to restrict the search-mode of the service to a specific country ... like here (note the parameter gl):

      google maps API services

      kind regards

      Comment

      • stylishjm
        New Member
        • Jan 2010
        • 27

        #4
        my bad, it is http://edgwarelocalcar s.co.uk

        Comment

        Working...