Results 1 to 3 of 3

Thread: [RESOLVED] [2005] Geographic data

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2005
    Posts
    1,950

    Resolved [RESOLVED] [2005] Geographic data

    Anyone have any experience of consulting some kind of mapping database that provides information about a 'location'?

    For example, on online web shopping basket forms, the user can enter a zip code and their address is populated from that, usually only the house number is needed to fully determine an address.

    On Ebay, it's possible to specify a radius from a location and presumably determine the roads/streets that lie within that radius, or whether a zip code is within that radius.

    How is this achieved?

  2. #2
    PowerPoster Jenner's Avatar
    Join Date
    Jan 2008
    Location
    Mentor, OH
    Posts
    3,712

    Re: [2005] Geographic data

    They do this with the help of a GeoCoding database such as Google Maps or Yahoo. Check out Yahoo's Geocoding API here for a good example.

    This database converts addresses into lat/long coordinates. After that, it's simple math. In the Ebay example, Ebay knows your lat/long, and it knows the lat/long of all the people selling products, so it just runs them through a simple equation to get the distance; as you would the points of a line and filters out all the ones over XX distance.

    Hope that is what you're looking for.
    My CodeBank Submissions: TETRIS using VB.NET2010 and XNA4.0, Strong Encryption Class, Hardware ID Information Class, Generic .NET Data Provider Class, Lambda Function Example, Lat/Long to UTM Conversion Class, Audio Class using BASS.DLL

    Remember to RATE the people who helped you and mark your forum RESOLVED when you're done!

    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. "
    - Albert Einstein

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2005
    Posts
    1,950

    Re: [2005] Geographic data

    That's exactly it. Thanks.

Posting Permissions

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



Click Here to Expand Forum to Full Width