SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Jan 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Beginner Question - How Do I Make This?

    I am very new to javascript/jquery, most of what I have learned has been on Codecademy but I haven't actually created anything useful yet. How would I create a map locator tool that has a zip code search function? Basically I have about 200 locations. I would like the user to be able to type in their zip code, with the results showing them the closest locations to them. Seems simple, but I have no idea where to start? Any info/direction would be greatly appreciated.

  2. #2
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    6,060
    Mentioned
    219 Post(s)
    Tagged
    12 Thread(s)
    Hi,

    Welcome to the forums

    Quote Originally Posted by dsully360 View Post
    How would I create a map locator tool that has a zip code search function? Basically I have about 200 locations. I would like the user to be able to type in their zip code, with the results showing them the closest locations to them.
    Personally, I would use Google Maps and a proximity search.
    Here's a tutorial: https://developers.google.com/maps/a...hpsqlsearch_v3

    Quote Originally Posted by dsully360 View Post
    Seems simple
    Really?
    In order to realise this you will need to geocode your zip codes into longitude/latitude coordinates, interact with the GoogleMaps API, parse and display the results, not to mention have a working knowledge of PHP and MySQL.
    To me, this seems somewhat more complicated than you realise.

    Here's another link that might be useful: http://stackoverflow.com/questions/2...ip-postal-code

    Good Luck!

  3. #3
    SitePoint Member
    Join Date
    Jan 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Great, thank you for the help. I know its not simple, which is why I said "seems" simple, doesn't mean it is.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •