| View previous topic :: View next topic |
| Author |
Message |
Marsha and Silent Bob Past MnGCA President
Joined: 02 Sep 2003
Posts: 6261
|
Posted: Tue Nov 15, 2005 8:47 am Post subject: |
|
|
The maps are back up and running and hosted on my own personal server. It's a bit slower but it will work just fine.
Sorry for the inconveinience. _________________ Sad state of affairs. |
|
| Back to top |
|
 |
fidian Geocacher
Joined: 23 Nov 2005
Posts: 126
|
Posted: Wed Nov 23, 2005 1:43 pm Post subject: Google maps? |
|
|
How about making the map interactive, using Google Maps API?
If you like, I have a live demo that shows the caches that geocaching.com knows about from the laker map text file that's available. Since you already run PHP, it could also run from this server. It uses a cache file, which you can generate when the lakers are updated instead of when people want to view the map...
Anyway, take a look at it and let me know if you like it. It is sometimes a bit slow to load because it looks up the information for the caches live. If anything changed from the last time the coordinates were fetched, things will be updated appropriately. It would be a bit better if that data was stored when the laker was placed into a cache, just like how the text file gets updated.
Last edited by fidian on Wed Nov 23, 2005 1:52 pm; edited 1 time in total |
|
| Back to top |
|
 |
towlebooth Past MnGCA Board

Joined: 26 Nov 2002
Posts: 1269 Location: Saint Paul
|
Posted: Wed Nov 23, 2005 1:47 pm Post subject: |
|
|
| This would be an improvement. Any interest in the open Webmaster position? |
|
| Back to top |
|
 |
Marsha and Silent Bob Past MnGCA President
Joined: 02 Sep 2003
Posts: 6261
|
Posted: Wed Nov 23, 2005 1:53 pm Post subject: |
|
|
Your PHP code seems to require a Google API key which only permits 100 queries a day. The Lakermap sees more traffic than that here.
Is there a way to do it w/o the Google API?
[edit] I assume that your cached data means that it would only update when someone drops/retrieves a laker. I'm dumb today. Too much food on the brain. _________________ Sad state of affairs. |
|
| Back to top |
|
 |
Marsha and Silent Bob Past MnGCA President
Joined: 02 Sep 2003
Posts: 6261
|
Posted: Wed Nov 23, 2005 2:07 pm Post subject: |
|
|
Now that I've been reading your post and thinking about it some more over my favorite caffeinated beverage, it probably wouldn't be possible to do the Laker coord lookups when the lakers are dropped...
The webserver the site is hosted on won't run the scripts used to retrieve the data (and thus why I host the maps on my own site).
I'm not about to go this route and I'll instead wait for someone else to take over the webmaster position and maybe they can figure it out.
Thanks for the suggestion. _________________ Sad state of affairs. |
|
| Back to top |
|
 |
fidian Geocacher
Joined: 23 Nov 2005
Posts: 126
|
Posted: Wed Nov 23, 2005 4:42 pm Post subject: |
|
|
The Google Maps API says "If you expect to get more than 50,000 page views per day, you must contact us to get permission to use the API. During this "pilot" period, Google Maps may not be able to accommodate very large web sites." 50,000 page views a day should accomodate this site.
For the lookup, can you use PHP's fopen() to retrieve a URL? If you can use this code, you can use the lookup in a PHP page. That's basically what I use. I wrote a function that grabs a GPX file from geocaching.com using basically what you see here, but with a couple more lines.
| Code: |
$fp = fopen("http://www.yahoo.com/", "r");
echo "<pre>";
while (! feof($fp))
echo htmlspecialchars(fgets($fp))
echo "\n</pre>";
fclose($fp);
|
|
|
| Back to top |
|
 |
Marsha and Silent Bob Past MnGCA President
Joined: 02 Sep 2003
Posts: 6261
|
Posted: Wed Nov 23, 2005 5:16 pm Post subject: |
|
|
I can't get a GPX from geocaching.com on the MnGCA webserver as we don't have a Premium account for the MnGCA. I'm not going to use my own account for that either. _________________ Sad state of affairs. |
|
| Back to top |
|
 |
fidian Geocacher
Joined: 23 Nov 2005
Posts: 126
|
Posted: Wed Nov 23, 2005 7:43 pm Post subject: |
|
|
| It can always be parsed out of the cache's page as long as it is not a member's-only cache. Or retrieved from a LOC file. In fact, I just changed mine to get a LOC file because it is smaller. Basically, I can get it however you like, but those GPX and LOC files are just a bit easier to parse. |
|
| Back to top |
|
 |
fidian Geocacher
Joined: 23 Nov 2005
Posts: 126
|
Posted: Wed Apr 05, 2006 7:14 am Post subject: |
|
|
This is not intended as a bump. Instead, I would like to tell people that the map was not working for a while, but now it is working again. It now logs in as me properly in order to grab the correct coordinates (not via LOC/GPX but parses it out of the cache page). This means that the laker map should now always be updated. Yeay!
Oh, and these changes could make it work pretty well on the MnGCA site - only caches that are "Members Only" wouldn't get coordinates without a subscription account. That shouln't happen too often.
Anyway, just letting people know that the map is now being updated properly: http://rumkin.com/tools/gps/lakermap.php _________________
 |
|
| Back to top |
|
 |
Marsha and Silent Bob Past MnGCA President
Joined: 02 Sep 2003
Posts: 6261
|
Posted: Wed Apr 05, 2006 7:16 am Post subject: |
|
|
| fidian wrote: |
| Oh, and these changes could make it work pretty well on the MnGCA site - only caches that are "Members Only" wouldn't get coordinates without a subscription account. That shouln't happen too often. |
Contact the MnGCA Webmaster (GeoPierce) -- he's currently designing a new site for the MnGCA and will be incorporating things like Google Maps for various sections of the site (including Lakers). _________________ Sad state of affairs. |
|
| Back to top |
|
 |
Marsha and Silent Bob Past MnGCA President
Joined: 02 Sep 2003
Posts: 6261
|
Posted: Tue Oct 10, 2006 7:55 pm Post subject: |
|
|
The Lakers map is being updated again after a system upgrade and domain change on my end.
Sorry for the delay  _________________ Sad state of affairs. |
|
| Back to top |
|
 |
merkman Past MnGCA Board
Joined: 03 Jun 2006
Posts: 2032
|
Posted: Fri Oct 13, 2006 8:37 pm Post subject: Web site help |
|
|
I have scripting/coding skills to volunteer for the lakers game if anyone is interested.
merkman
(I hope I don't regret this) |
|
| Back to top |
|
 |
|