Community of VE/MapPoint Users and Developers
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 ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Possible to Locate all Hospitals in 1 mile radius? 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 |
| |||
| 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(); } |
![]() |
| Tags |
| hospitals, locate, mile, radius |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| 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 |