![]() |
|
|||
Quote:
I do it from the geographic center of the zipcode of the official to the geographic center of the zipcode of the school. Databases are available that give precise coordinates (latitude and longitude) of this geographic center. With this data, you can calculate the distance between two coordinates. The ramifications of this sort of approximation is that the driving distance can be off by +/- half the size of each zipcode.....plus the "as-the-crow-flies" approximation error. (I've been investigation even better methods of approximating distance that eliminates 1/2 zipcode errors). The distance from an official to a school in the same zipcode will come up as 0 miles. The distance between a school and an official who just live on opposite sides of the zipcode boundaries could be 10's of miles. On RefTown, however, I don't do it "as-the-crow-flies". I have another method that I created that more closely approximates real driving distances....still an approximation but typically with a smaller margin of error. To calculate precise mileages for all the possible addresses and routes is a pretty complicated and compute intensive task...something you don't really want when you load your page with 40-50 games.
__________________
Owner/Developer of RefTown.com Commissioner, Portland Basketball Officials Association Last edited by Camron Rust; Wed Sep 17, 2008 at 04:10pm. |
Bookmarks |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Arbiter question | BktBallRef | Basketball | 5 | Mon Jul 21, 2008 09:25pm |
Arbiter question | DTQ_Blue | Softball | 2 | Fri Jul 11, 2008 11:31am |
Arbiter ? | IAUMP | Football | 8 | Sun Aug 13, 2006 05:45pm |
The Arbiter | eyezen | Basketball | 10 | Mon Aug 07, 2006 05:39am |
ARBITER.NET | brianp134 | Basketball | 9 | Tue Sep 23, 2003 11:59am |