MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




is an address within an area?

This is a discussion on is an address within an area? within the MapPoint 2006/2009 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 ...


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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-17-2005
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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
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 02-18-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,055
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 02-18-2005
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 787
Blog Entries: 5
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
Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 02-23-2005
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 02-23-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,055
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.
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


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
Surface Area Dazzer MapPoint 2006/2009 Discussion 9 01-05-2006 04:13 AM
print a map area according to block and lot(nyc) Anonymous MapPoint 2006/2009 Discussion 1 10-11-2004 08:00 AM
How to get the 4 map area coordinates ? Anonymous MapPoint 2006/2009 Discussion 1 01-22-2004 01:44 PM
Avoided Area? Anonymous MapPoint 2006/2009 Discussion 1 09-25-2003 12:46 AM
Selected Area amanuel MapPoint 2006/2009 Discussion 4 08-22-2002 01:23 PM


All times are GMT -5. The time now is 05:20 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

Bulgaria Ski Holidays
First time skier? Looking for something a little different? Bulgaria Ski holidays could be the perfect remedy to your winter blues. Bulgaria prices are great value.

Personal Travel Advisor
Let a personal Travel Advisor help with your travel plans. Travel Counsellors were voted UK's Best Travel Agent at the Guardian Unlimited travel awards

Holidays to Thailand
The best cultures and backgrounds make Thailand an interesting and memorable country to visit. Book great value holidays to Thailand online at dealchecker.co.uk.

Barbados Holidays
Barbados holidays can be a wonderful break from the rat race or an exciting, action packed adventure. Plan the perfect holiday in Barbados.

Cheap Balearics Holidays
Cheap Balearics holidays are available if you know when to book and who to book with. The Balearics have many fascinating places to visit all year round. The partying never stops.

Travel
Before making a choice regarding travel, check out the amazing variety of options on Travel.co.uk.

Portugal Holidays
We specialise in Portugal holidays. Visit our On The Beach website for more information.


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