|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#16
|
|||||
|
|||||
|
Re: FIRST Team Map
Quote:
There's also a related thread from a while ago at http://www.chiefdelphi.com/forums/sh...ad.php?t=29199 which does things a different way using Perl rather than PHP and geoinfo files rather than a satellite map (it's US-only as is, though; but you could mix and match ideas from both, if you wanted). If you were to want to do things that way rather than with a satellite map the PEAR Image_GIS package might come in handy: see http://pear.php.net/package/Image_GIS for details. It's entirely possible to go beyond what either of us have done, though. I think it might be cool to do something like: http://physos.net/~physos/worldwide/test.html (mouse over the points on the map). If you're planning to do that, though; I'd strongly suggest caching the generated map image (since it can take a while). Also, if you're going to make one of these, cache the coordinates for teams, etc. from Multimap (or whatever other one you use); otherwise you're going to end up being way too harsh on the server. |
|
#17
|
|||||
|
|||||
|
Re: FIRST Team Map
Wow...thanks a lot...
Maybe in the next version of Team Lookup I'll have it generate coordinates and just put it in the file w/ them. I hadn't really looked into Google APIs too much, though I think there is an API for their Map service now...but yeah the way you're saying would be easier. To get the coordinates did you just feed it into the search engine from multimap then load the entire page as a string using php and search for the x-coord and y-coord or do they have a built in thing to find coordinates? You just gave me something to play with now! Thanks. The image in this thread is created w/ PHP but they you saved it, correct? As in it doesn't regenerate everytime... Thanks a lot. |
|
#18
|
|||||
|
|||||
|
Re: FIRST Team Map
Quote:
As for how I did things For Multimap I wrote (in PHP): PHP Code:
Code:
CREATE TABLE `geoLocations` ( `streetAddress` varchar(255) NOT NULL default '', `city` varchar(255) NOT NULL default 'Kingston', `province` char(2) NOT NULL default 'ON', `country` char(2) NOT NULL default 'CA', `latitude` decimal(10,4) NOT NULL default '0.0000', `longitude` decimal(10,4) NOT NULL default '0.0000' ) TYPE=MyISAM COMMENT='Stores geographical information about addresses' Note: The reason it's not a simple typical equation to find distance (eg. ) is mainly that the Earth is (roughly) spherical. For those who care, it's not precisely spherical and therefore the below function is an approximation, but, it seems to me to be more than good enough for all of my purposes:PHP Code:
Anyway, that should be more than enough to tinker with; have fun :-) |
|
#19
|
|||||
|
|||||
|
Re: FIRST Team Map
Quote:
More information is at: http://www.betanews.com/article/Goog...ers/1120070538 The Google Maps API itself is documented at: http://www.google.com/apis/maps/ It's definitely something I'm going to be looking at myself, soon. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| The Death of FIRST | Anton Abaya | General Forum | 23 | 03-05-2006 17:18 |
| Who do you think is the best bet to win the Chairman's Award at the Championship? | Koko Ed | Chairman's Award | 58 | 29-04-2005 16:39 |
| What's the best organizational structure for photos? | maikull | Chit-Chat | 2 | 17-03-2005 17:47 |
| Real names, please | Andy Baker | General Forum | 131 | 21-07-2004 22:07 |
| Renovating a Team | av11d | Team Organization | 2 | 18-04-2004 20:06 |