Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 4 of 4

Zip Code Fractions

This is a discussion on Zip Code Fractions within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi there, I am wondering if there is a way to obtain ZIP code fractions that are captured by a ...

  1. #1
    MapUser is offline Junior Member White Belt
    Join Date
    Oct 2006
    Posts
    4

    Zip Code Fractions

    Hi there,

    I am wondering if there is a way to obtain ZIP code fractions that are captured by a radius. I know that you can export all the ZIP codes touched by a radius. But I need the fraction of the ZIP that is actually inside the radius. Essentially, given a radius, I am looking for an output like:

    Code:
    ZIP                    Fraction in Radius
    -------------          -------------
    12345                          78%
    23456                          92%
    ...


    Thanks a lot.


    Pete
    Last edited by MapUser; 10-05-2006 at 12:36 PM.

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi Pete,

    For everything there is a way

    Search point by point in the radius for a street. Then filter out duplicate streetnames. Then you have a location object for every street in your radius.

    Et voila each object has his zip code and you have to do some simple calculation to get the percentage.

  3. #3
    MapUser is offline Junior Member White Belt
    Join Date
    Oct 2006
    Posts
    4

    Re: Zip Code Fractions

    Hi Wilfried,

    Thank you very much for your reply. Please excuse my unfamiliar with MapPoint programming API, but could you please advice which function to use to find all the points within a radius and/or zip code? Thank you very much.

    Pete

  4. #4
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: Zip Code Fractions

    Hi Pete,

    For each point you wants to check you calculate latitude and longitude. To see if you have an object you can use ObjectsFromPoint();

    I have an article that more or less describe what you do. Do a search on 'snap to road' on this site. It start on a position and then it make a vector checking each point with 5 meter interval, increase radius 5 meter until the radius of the circle is reached.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96