Distance to/from address, city or zip code

Discussion in 'PHP' started by hdpt00, May 1, 2006.

  1. #1
    Anyone know how I could do some code to lte's say grab all addresses or zip codes within X miles from an address, city or zip code? I think I found some code online to do it for a zip code, but no clue about city or address.

    If someone could get this or knows how I could pay a decent amount, PM me.
     
    hdpt00, May 1, 2006 IP
  2. arnek

    arnek Active Member

    Messages:
    134
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #2
    This is really a good question, I think for this you'll have to buy the raw data(specs) or enter it yourself into a database type of architecture.
     
    arnek, May 1, 2006 IP
  3. falcondriver

    falcondriver Well-Known Member

    Messages:
    963
    Likes Received:
    47
    Best Answers:
    0
    Trophy Points:
    145
    #3
    falcondriver, May 2, 2006 IP
  4. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,219
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    0
  5. hdpt00

    hdpt00 Peon

    Messages:
    427
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I am also looking for another program to change address into longitude and latitude becuase I think that is what most distance calculations use.

    In my zip database it gives long and lat, but somehow need to change addresses as well.

    Anyone?
     
    hdpt00, May 2, 2006 IP
  6. Wyla

    Wyla Well-Known Member

    Messages:
    924
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    140
    #6
    Wyla, Nov 11, 2006 IP
  7. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
  8. Wyla

    Wyla Well-Known Member

    Messages:
    924
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    140
    #8
    hmmm.. PHP5
    Thanks. Anything for PHP4 though? If not, I'll have to get another host.

    and check out the comments :D
     
    Wyla, Nov 11, 2006 IP
  9. elenana

    elenana Guest

    Messages:
    34
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    elenana, Jul 26, 2009 IP
  10. ThomasTwen

    ThomasTwen Peon

    Messages:
    113
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #10
    You might want to have a look at the Google Maps API, they have some interesting tools for calculating distances between coordinates.
    Since you want to build some kind of "Yellow Pages" thing, you might want to have a look at the data in the OpenStreetMap project (Wikipedia-style maps project) too. Also, there is a company named Cloudmade. They basically try to give you the OpenStreetMap data in more usable formats, and provide APIs and such.
     
    ThomasTwen, Aug 18, 2010 IP