L
Legacy 98055
Guest
I am creating an automatic, mobile logging system utilizing a GPS. The US Census Bureau provides approximate coordinates for each US zipcode. An example of "45252", which is my home zipcode is below...
-84.6298613426565 39.2773019382716
-84.6303470000000 39.3120560000000
-84.6294240000000 39.3104500000000
-84.6333240000000 39.3090500000000
-84.6342240000000 39.3091500000000
-84.6372480000000 39.3062570000000
-84.6277480000000 39.3043570000000
-84.6211470000000 39.3024570000000
-84.6183470000000 39.3001570000000
-84.6110470000000 39.2924570000000
-84.6072470000000 39.2895570000000
-84.6056470000000 39.2865570000000
-84.6040470000000 39.2811570000000
-84.6025470000000 39.2700570000000
-84.6041470000000 39.2638570000000
-84.6038470000000 39.2622570000000
-84.6004460000000 39.2563570000000
-84.6026460000000 39.2550570000000
-84.6215470000000 39.2401570000000
-84.6260470000000 39.2376570000000
-84.6298470000000 39.2327580000000
-84.6298470000000 39.2327580000000
-84.6370470000000 39.2348570000000
-84.6438470000000 39.2396570000000
-84.6472470000000 39.2409570000000
-84.6524470000000 39.2471570000000
-84.6584380000000 39.2508330000000
-84.6617480000000 39.2566570000000
-84.6630550000000 39.2601090000000
-84.6629480000000 39.2615570000000
-84.6625740000000 39.2617050000000
-84.6625740000000 39.2617050000000
-84.6597600000000 39.2616000000000
-84.6554380000000 39.2644080000000
-84.6547220000000 39.2665350000000
-84.6584480000000 39.2715570000000
-84.6549030000000 39.2806030000000
-84.6529480000000 39.2872570000000
-84.6534480000000 39.2892570000000
-84.6602480000000 39.2885570000000
-84.6645480000000 39.2920570000000
-84.6643480000000 39.2962570000000
-84.6606510000000 39.2989360000000
-84.6571170000000 39.2998400000000
-84.6506930000000 39.2990440000000
-84.6465830000000 39.3003130000000
-84.6424770000000 39.3030640000000
-84.6377060000000 39.3098200000000
-84.6304060000000 39.3120460000000
-84.6304060000000 39.3120460000000
-84.6303470000000 39.3120560000000
These sets of Longitute and Latitude coords define a boundary for my zip code. What I need to do is create a complex polygon with the above coords and then, feeding a function a Longitute and Latitude, determine if that given global position falls within my polygon (zip code boundary).
For example:
Longitude: -84.6197
Latitude: 39.2947
Will fall within the above polygon and my function would return true.
Any help on this one??? Please!
-84.6298613426565 39.2773019382716
-84.6303470000000 39.3120560000000
-84.6294240000000 39.3104500000000
-84.6333240000000 39.3090500000000
-84.6342240000000 39.3091500000000
-84.6372480000000 39.3062570000000
-84.6277480000000 39.3043570000000
-84.6211470000000 39.3024570000000
-84.6183470000000 39.3001570000000
-84.6110470000000 39.2924570000000
-84.6072470000000 39.2895570000000
-84.6056470000000 39.2865570000000
-84.6040470000000 39.2811570000000
-84.6025470000000 39.2700570000000
-84.6041470000000 39.2638570000000
-84.6038470000000 39.2622570000000
-84.6004460000000 39.2563570000000
-84.6026460000000 39.2550570000000
-84.6215470000000 39.2401570000000
-84.6260470000000 39.2376570000000
-84.6298470000000 39.2327580000000
-84.6298470000000 39.2327580000000
-84.6370470000000 39.2348570000000
-84.6438470000000 39.2396570000000
-84.6472470000000 39.2409570000000
-84.6524470000000 39.2471570000000
-84.6584380000000 39.2508330000000
-84.6617480000000 39.2566570000000
-84.6630550000000 39.2601090000000
-84.6629480000000 39.2615570000000
-84.6625740000000 39.2617050000000
-84.6625740000000 39.2617050000000
-84.6597600000000 39.2616000000000
-84.6554380000000 39.2644080000000
-84.6547220000000 39.2665350000000
-84.6584480000000 39.2715570000000
-84.6549030000000 39.2806030000000
-84.6529480000000 39.2872570000000
-84.6534480000000 39.2892570000000
-84.6602480000000 39.2885570000000
-84.6645480000000 39.2920570000000
-84.6643480000000 39.2962570000000
-84.6606510000000 39.2989360000000
-84.6571170000000 39.2998400000000
-84.6506930000000 39.2990440000000
-84.6465830000000 39.3003130000000
-84.6424770000000 39.3030640000000
-84.6377060000000 39.3098200000000
-84.6304060000000 39.3120460000000
-84.6304060000000 39.3120460000000
-84.6303470000000 39.3120560000000
These sets of Longitute and Latitude coords define a boundary for my zip code. What I need to do is create a complex polygon with the above coords and then, feeding a function a Longitute and Latitude, determine if that given global position falls within my polygon (zip code boundary).
For example:
Longitude: -84.6197
Latitude: 39.2947
Will fall within the above polygon and my function would return true.
Any help on this one??? Please!