User Interface for changing location...HELP...

  • 1
  • Question
  • Updated 8 years ago
Hi i am really stuck on how to actually use this thing :/ I'm very new at coding and therefore I'm not very good at it... My problem is that i just don't know how to implement this API.
I want to have a search box which can set the city or postcode and then for the info to be generated accordingly. At the moment i can only set the URL to one specific city, as the example code shows but i would like for the user to be able to change the city or postcode and have this address saved so when they reload the page it doesn't re-set to the default city.

If someone could point me in the right direction i would be very great full.

Photo of strydom


  • 8 Posts
  • 0 Reply Likes

Posted 8 years ago

  • 1
Photo of Brendan Hayes

Brendan Hayes, Official Rep

  • 962 Posts
  • 124 Reply Likes
Hopefully someone else can answer more about the code, but I can tell you that you can pass zip code or city name or any search parameters to the url after the /q/ part. Read more here:

Also, for help from the community, you should list what you're coding in. PHP? Javascript?