MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth 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

Today's Posts Twitter Feed 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 6 05-22-2009 11:21 AM
1 mile radius around all pushpins? stevewilson MapPoint 2006/2009 Discussion 1 08-17-2004 12:40 PM
Get all zip codes on 50 mile radius Anonymous MapPoint 2006/2009 Discussion 1 03-16-2004 12:35 PM
50 Mile Radius of Airport slyne MapPoint 2006/2009 Discussion 1 10-02-2003 11:06 PM
I have a dataset of 390 hospitals with zipcodes, d.... Anonymous MapPoint 2006/2009 Discussion 1 03-10-2002 10:48 PM


All times are GMT -5. The time now is 11:00 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Majorca Holiday
Enjoy a Majorca holiday at a good price when you check out the offers on UlookUbook for this popular destination!



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