Each crime page has (had) a Google map on it. With the API, that's not possible, because the API limits a key to a directory. I would have to register a specific API key for each crime in the system.
About 1,000 crimes get added each day.
The problem is that this setup "punishes" clean, pretty URLs such as the ones I'm using. If I used ugly abominations such as http://www.chicagocrime.org/?crime=2005/jun/14/12am/hl419247/, it would work as is. But that would be an ugly abomination.
Yes, I could use iframes, but those aren't ideal. That would require separate server-side code that's unnecessarily complex.
I'm not sure what the goal of the directory limit is, but in this particular case it doesn't make sense. Please let the API be used on a per-*site* basis instead of a per-directory basis.
This is the same problem I'm running into. I'm unable to make my URLs look nice. I hope they get the key system worked out quickly. I'd like to take my site live sometime soon, but I want it to look spiffy also.
FWIW, this would also open up some creative uses of GMaps on Blogger, by allowing maps in blog entries. (Under Blogger, main and archive pages appear at top-level; individual post pages in year/month subdirectories; so one GMaps key won't cover a post for all URLS it appears on.)
I've run into the problem that since I registered my api key without
the www in the domain name any time you use the www in the url it
rejects the user. If google must limit it to a directory I just hope
they remove this limitation so both http://www.sitename.com/maps/ and
http://sitename.com/maps/ works.
I get around this by embedding the map in an iframe hitting a dynamic page that is in a dir that you have the kye for. Using iframes makes me feel on the unclean side, but it gets around the problem.
Adrian Holovaty wrote: > The problem is that this setup "punishes" clean, pretty URLs such as > the ones I'm using. If I used ugly abominations such as > http://www.chicagocrime.org/?crime=2005/jun/14/12am/hl419247/, it would > work as is. But that would be an ugly abomination.
> I'm not sure what the goal of the directory limit is, but in this > particular case it doesn't make sense. Please let the API be used on a > per-*site* basis instead of a per-directory basis.