MnGCA Home MnGCA
Minnesota Geocaching Association
 
 FAQFAQ   SearchSearch   User listUser list   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Lakers Map
Goto page Previous  1, 2, 3, 4, 5
 
Post new topic   Reply to topic    MnGCA Forum Index -> MnGCA Cache Games
View previous topic :: View next topic  
Author Message
Marsha and Silent Bob
Past MnGCA President


Joined: 02 Sep 2003

Posts: 6261

PostPosted: Tue Nov 15, 2005 8:47 am    Post subject: Reply with quote

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
View user's profile Send private message
fidian
Geocacher


Joined: 23 Nov 2005

Posts: 126

PostPosted: Wed Nov 23, 2005 1:43 pm    Post subject: Google maps? Reply with quote

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
View user's profile Send private message
towlebooth
Past MnGCA Board


Joined: 26 Nov 2002

Posts: 1270
Location: Saint Paul

PostPosted: Wed Nov 23, 2005 1:47 pm    Post subject: Reply with quote

This would be an improvement. Any interest in the open Webmaster position?
Back to top
View user's profile Send private message Visit poster's website
Marsha and Silent Bob
Past MnGCA President


Joined: 02 Sep 2003

Posts: 6261

PostPosted: Wed Nov 23, 2005 1:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
Marsha and Silent Bob
Past MnGCA President


Joined: 02 Sep 2003

Posts: 6261

PostPosted: Wed Nov 23, 2005 2:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
fidian
Geocacher


Joined: 23 Nov 2005

Posts: 126

PostPosted: Wed Nov 23, 2005 4:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
Marsha and Silent Bob
Past MnGCA President


Joined: 02 Sep 2003

Posts: 6261

PostPosted: Wed Nov 23, 2005 5:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
fidian
Geocacher


Joined: 23 Nov 2005

Posts: 126

PostPosted: Wed Nov 23, 2005 7:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
fidian
Geocacher


Joined: 23 Nov 2005

Posts: 126

PostPosted: Wed Apr 05, 2006 7:14 am    Post subject: Reply with quote

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
View user's profile Send private message
Marsha and Silent Bob
Past MnGCA President


Joined: 02 Sep 2003

Posts: 6261

PostPosted: Wed Apr 05, 2006 7:16 am    Post subject: Reply with quote

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
View user's profile Send private message
Marsha and Silent Bob
Past MnGCA President


Joined: 02 Sep 2003

Posts: 6261

PostPosted: Tue Oct 10, 2006 7:55 pm    Post subject: Reply with quote

The Lakers map is being updated again after a system upgrade and domain change on my end.

Sorry for the delay Smile
_________________
Sad state of affairs.
Back to top
View user's profile Send private message
merkman
Past MnGCA Board


Joined: 03 Jun 2006

Posts: 2032

PostPosted: Fri Oct 13, 2006 8:37 pm    Post subject: Web site help Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    MnGCA Forum Index -> MnGCA Cache Games All times are GMT - 6 Hours
Goto page Previous  1, 2, 3, 4, 5
Page 5 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
Geocaching Cache Icons, Copyright 2009, Groundspeak Inc. All rights reserved. Used with Permission.