MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Possible to Locate all Hospitals in 1 mile radius?

This is a discussion on Possible to Locate all Hospitals in 1 mile radius? within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi everyone - I was wondering if it was possible to locate a specific type of POI (such as all ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-08-2003
Junior Member
White Belt
 
Join Date: Jan 2003
Posts: 4
Possible to Locate all Hospitals in 1 mile radius?

Hi everyone -

I was wondering if it was possible to locate a specific type of POI (such as all hospitals) in a 1 mile radius? I was trying to figure out how the PlaceCategory property works (and if it will tell me what type of feature each POI or place is that I find.) I am trying to put PushPins on each of these hospitals (if I can select them out) from a FindResults Collection from a FindNearby search from the original (center) location.

I do not have any of my own hospital information (locations that I would import), but using MapPoint interactively, I can easily find all hospitals (or any other single type of POI) in a certain radius from a single location.

Is this a good way to go about it? I'm also doing this development in C#, so if anyone knows where I can locate other good C# examples, I'd be really interested.

Thanks!!
Chris
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 01-08-2003
Junior Member
White Belt
 
Join Date: Jan 2003
Posts: 4
I think I figured it out

I think I figured out how to get just the "Hospitals" out of a FindResults Collection: (in C#)


for ( int i = 0 ; i < oRes.Count; i++ )
{

MapPoint.Pushpin Pin;
MapPoint.Location Loc = (MapPoint.Location)oEnum.Current;

if ( (Loc.PlaceCategory != null) && (Loc.PlaceCategory.Name == "Hospitals") )
{

Pin = oMap.AddPushpin(Loc, Loc.Name);
Pin.BalloonState = MapPoint.GeoBalloonState.geoDisplayName;

}

oEnum.MoveNext();

}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
hospitals, locate, mile, radius


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
can I get demographic data at 1, 3, and 5 mile radius? rmchugh MapPoint 2006/2009 Discussion 5 01-23-2007 10:57 AM
1 mile radius around all pushpins? stevewilson MapPoint 2006/2009 Discussion 1 08-17-2004 01:40 PM
Get all zip codes on 50 mile radius Anonymous MapPoint 2006/2009 Discussion 1 03-16-2004 01:35 PM
50 Mile Radius of Airport slyne MapPoint 2006/2009 Discussion 1 10-03-2003 12:06 AM
I have a dataset of 390 hospitals with zipcodes, d.... Anonymous MapPoint 2006/2009 Discussion 1 03-10-2002 11:48 PM


All times are GMT -5. The time now is 03:07 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


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