Private PolyPoints As List
PolyPoints.initialize
PolyPoints.Add(CreateMap("lat":22.573515, "lng":88.371020))
PolyPoints.Add(CreateMap("lat":22.569855, "lng":88.370321))
PolyPoints.Add(CreateMap("lat":22.568923, "lng":88.375217))
PolyPoints.Add(CreateMap("lat":22.570707, "lng":88.373158))
PolyPoints.Add(CreateMap("lat":22.571181, "lng":88.376235))
PolyPoints.Add(CreateMap("lat":22.573515, "lng":88.375136))
PolyPoints.Add(CreateMap("lat":22.573515, "lng":88.371020)) 'add the first point at last to close the polygon
Private gpm as GPSPolyMap
gpm.Initialize(PolyPoints)
Sub GPS1_LocationChanged (Location1 As Location)
Log(gpm.isInside(Location1.Latitude,Location1.Longitude,True))
End Sub