Sebi_Hamburg
01-09-2007, 05:32 AM
Hi All,
i have imported many pushpins into a map (appr. 15,000). They are structured in 20 pushpin groups. Furthermore i have a dataset of 5,000 addresses. Now i want to receive the distance (as the crow flies) from each address to the closest pushpin of each pushpin group.
How can i address the different pushpin groups (that i created; no POI) and how can i receive the distance and the name of the closest pushpin of each pushpin group?
I am using MapPoint 2004 and vb6.
thx a lot in advance!
Wilfried
01-09-2007, 01:03 PM
Hi,
You ask a lot of questions :) Let's see.
structured in 20 pushpin groups. Furthermore i have a dataset of 5,000 addresses. Now i want to receive the distance (as the crow flies) from each address to the closest pushpin of each pushpin group.
Keep in your application a linked list per pushpin group. Keep them in a structure or class that also holds the latitude and longitude. Then you can do easy this calculation in your own application if you only need the distance to the birds eye of view.
How can i address the different pushpin groups
I dont understeand this question. Can you please clarify ? You can hold each group in a separate linked list.
how can i receive the distance and the name of the closest pushpin of each pushpin group?
Dont understeand this eather :(
Sebi_Hamburg
01-12-2007, 06:39 AM
QUOTE:
Keep in your application a linked list per pushpin group. Keep them in a structure or class that also holds the latitude and longitude. Then you can do easy this calculation in your own application if you only need the distance to the birds eye of view.]
Ok,
sorry for replying late. Had to find out first how i can get latitudes and longitudes of the pushpins.
I can get the latitude and longitude from the pushpin tool, right? And then i keep them in linked lists per pushpin group.
In the next step i want to receive the distance (as the crow flies) from each of the 5,000 addresses to the closest pushpin of each pushpin group (and the name of that pushpin). Probably its the best to keep these addresses in latitudes and longitudes, too.
Would you mind to send me an eg. of a vb reference that gives back the distance of the closest pushpin of "pushpin group A" (and the name of that pushpin) to any coordinates (in latitudes and longitudes).
Thx in advance for helping a mp dummy :shock:
Sebi_Hamburg
01-12-2007, 11:48 AM
Ok, finally i solved that problem: The MapPoint tool MileCharter (MileCharter: Create Mileage Charts with Microsoft® MapPoint® (http://www.mapping-tools.com/milecharter/index.shtml)) provides a feature that finds the closest pushpins of each group.