Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

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

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 2 of 2

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

  1. #1
    ChrisC is offline 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

  2. #2
    ChrisC is offline 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();

    }

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. can I get demographic data at 1, 3, and 5 mile radius?
    By rmchugh in forum MapPoint Desktop Discussion
    Replies: 6
    Last Post: 05-22-2009, 11:21 AM
  2. 1 mile radius around all pushpins?
    By stevewilson in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-17-2004, 12:40 PM
  3. Get all zip codes on 50 mile radius
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-16-2004, 12:35 PM
  4. 50 Mile Radius of Airport
    By slyne in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 10-02-2003, 11:06 PM
  5. I have a dataset of 390 hospitals with zipcodes, d....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-10-2002, 10:48 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83