How to create a geo-fence

The PolyLine feature is a great feature in V3. I can now create a polygon for my geo-fence. However, I don't know how to figure out whether a new LatLong is within my previously defined polygon. Can somebody help? Thanks.
[222 byte] By [DilipK] at [2008-2-27]
# 1
Not currently possible via Virtual Earth.
ghamm at 2007-8-30 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...
# 2
Is there any other way of doing it? How? Thanks.
DilipK at 2007-8-30 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...
# 3
I haven't had the need to do it myself yet, but the only ways I could think to do it would be by some sort of mathematical calculation, or make use of some other sort of software which does. MAYBE you can see if VML, which is what VE uses to draw the polylines can be utilized, but I don't know how if that even is possible.
ghamm at 2007-8-30 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...
# 4

obviously if your polygon is rectangular, it's an easy task... but I don't know how you would accomplish it with the current set of available methods if it is not rectangular.

pimpinonline at 2007-8-30 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...
# 5
If your polygons are already predefined, why not store them in MWS? Then, you can use Polylines to draw the polygon on VE and make a call to MWS to find out if the point is within the polygon stored in MWS.
TylerDavey at 2007-8-30 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...

Windows Live Developer Forums

Site Classified