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 5 of 5

is an address within an area?

This is a discussion on is an address within an area? within the MapPoint Desktop Discussion forums, part of the Map Forums category; can anyone tell me if there's a way to say if an address is within an area? i am trying ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    is an address within an area?

    can anyone tell me if there's a way to say if an address is within an area? i am trying to write an application that "asks" mappoint if an address is within a predefined area.
    thanks

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi,

    Yes should be easy to do. I think best is to find location of address and put a pushpin, then find all the pushpins in the area and check if the one from the address is in it. Possible other appoach also but this is how I should do it.

  3. #3
    Winwaed's Avatar
    Winwaed is offline Mapping-Tools.com Black Belt
    Join Date
    Feb 2004
    Location
    Irving,Texas
    Posts
    1,859
    Blog Entries
    60
    Another approach would be to define the area as a series of coordinates in your code. Then use MapPoint to find the address, and use Gilles code (see articles on this site) to get a longitude,latitude coordinate for the address.
    Then use a "point in polygon" algorithm.


    Richard
    Winwaed Software Technology LLC
    http://www.winwaed.com
    See http://www.mapping-tools.com for MapPoint Tools

  4. #4
    jvilladolid is offline Junior Member White Belt
    Join Date
    Feb 2005
    Posts
    1

    Asking Mappoint if address is within an area

    Thank you both for your replies. What isn't clear to me is how to apply the pushpin or lat/longitude solution if the "area" is actually a delivery zone. I was thinking of having someone "draw" the delivery zone on a map, save it, load the map and the delivery zone from within an application and then have the program do something like "the address is not within the delivery zone" The delivery zone won't necessarily be a rectangular region.

    thanks again

  5. #5
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi,

    It is not difficult to make code to find if a given position is within an area even if the area is not a know mathematical figure (like a circle or a rectangle).

    if you wants to draw an area you have to code all points and let your program calculate if it is within reaion as Richard mentioned. Find all points, skip 1 then you have triangle, move to 0,0 etc to find if it is within area. This way yoi only need triangle no matter how complex your area is.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Selected Area
    By amanuel in forum MapPoint Desktop Discussion
    Replies: 5
    Last Post: 10-12-2010, 07:55 PM
  2. Surface Area
    By Dazzer in forum MapPoint Desktop Discussion
    Replies: 9
    Last Post: 01-05-2006, 05:13 AM
  3. print a map area according to block and lot(nyc)
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 10-11-2004, 09:00 AM
  4. How to get the 4 map area coordinates ?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 01-22-2004, 02:44 PM
  5. Avoided Area?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 09-25-2003, 01:46 AM

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 84 85 86 87 88 89 90 91 92 93 94 95 96