Welcome to MapForums!

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

## 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. 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 11:36 AM.

2. 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. 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. 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.