I need help with Google Map API integration.

Discussion in 'Google API' started by prestons, Sep 19, 2007.

  1. #1
    I have a business directory and would like to add a Google Map to each page of each UK Town (NOT each business listing). I already have my API Key but how do I code this in to the website?

    This is what I want to happen. When you click on London it shows a map of 'London UK'. When you click on Edinburgh it shows a map of 'Edinburgh UK' etc...

    The site is built around one template page that I upload and it changes each individual page of the directory.

    Each town is a category and I just use [[category]] within the sites template which will replace it with the town of that page.

    I have managed to sort it so I can get London UK displaying OK but if I change Londonwithin the embedded code with any other town it does not work.

    The string [[category]] can be placed in the code/URL where the town is meant to go.

    Can you help me achieve this?
     
    prestons, Sep 19, 2007 IP
  2. Awanish

    Awanish Peon

    Messages:
    53
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    So primarily to show a city at UK, You will have use the Google techology called GeoCoding.. it translates any address to latitude and longitude. APIs also provides best fit bounds.

    See this link and type city names. like London,UK in the textinput
    http://www.google.com/apis/maps/documentation/examples/geocoding-simple.html

    If you want I can give you a simple HTML page which will have a combo of UK city names and an adjacent map.
     
    Awanish, Sep 20, 2007 IP