|
Replies:
11
-
Pages:
1
-
Last Post:
29 Nov 22, 11:07
Last Post By: linuxrog
|
Threads:
[
Previous
|
Next
]
|
|
Posts:
208
Registered:
21-Nov-2008
|
|
|
Maps - API Keys - Payment Method Now Required
Posted:
29 May 19, 03:57
|
|
|
In this
closed thread,
the question of requiring a payment method for aquiring an API Key was left a bit open.
I just had to establish a payment method for API key use. After aquiring a key, maps failed to load until I set up a payment method. I note that jAlbum staff have said that it is unlikely that jAlbum users would hit the top of the free tier of use; Google indicates that users will be notified if this is imminent.
Acquiring a key is not for the faint of heart. A tutorial would certainly be most welcome. Good luck.
This note is being posted under General because it cuts across many skins for which the map option is desired.
/Roger
|
|
|
Posts:
7,967
Registered:
31-Jan-2006
|
|
|
Re: Maps - API Keys - Payment Method Now Required
Posted:
29 May 19, 12:06
in response to: Laza
|
 |
Helpful |
|
|
It's been said that OpenStreetMap is just a provider of map tiles, and not really a direct replacement for Google. No features, so you have to do it yourself. I see a fair number of sites now using MapBox, which is like Google. Different coding for the API, of course, so you can't just swap one for the other.
A few problems....
First, if you offer skin users several options, they really don't have any way of choosing one over the other. Each will require that you sign up for an account, and get a key of some sort. You might not have to provide a credit card number for some services, but I don't think any of them is totally free, no matter how much you use them. So the user is left scratching his head - "Gee, these all look good. Which one should I use?!"
Second, if you offer several options, the code bloat sets in. You have to set up the UI to handle each of them (since they don't have the same settings), then build the code to generate the page or page element for each service. If you think it's messy making one map look like the rest of your skin pages, try doing it for three or four of them, and then having to maintain all of the variations as the API's change. Ugh.
Finally, on the subject of providing tutorials about how to get a key, you're at the mercy of the map providers. They change things. Regularly. If you look online for information about how to get a Google map key, what you'll find is a bunch of information that's outdated, even some of it from Google itself. I think the best you can do is point a user to the starting page for the provider - after that, he's just going to have to navigate through the labyrinth to get what he needs. Google in particular isn't set up to make things easy for the casual hobbyist who's after only one thing. It's set up for large corporate clients who are there to get all sorts of services, with maps being just one of many.
|
|
|
Posts:
208
Registered:
21-Nov-2008
|
|
|
Re: Maps - API Keys - Payment Method Now Required
Posted:
29 May 19, 19:19
in response to: JeffTucker
|
|
|
Grommit & Laza,
I see and appreciate the complications. I'm just glad that the mapping option is available. I agree that the features of G-maps makes it a first choice.
Would you consider posting as a tip a "guide" that I might compose to help navigate setting up an API key for the common man - strike that - common person? It would be my little bit of contribution to the jAlbum community and subject to your proofing / improvement.
/Roger
|
|
|
Posts:
7,967
Registered:
31-Jan-2006
|
|
|
Re: Maps - API Keys - Payment Method Now Required
Posted:
29 May 19, 19:28
in response to: linuxrog
|
|
|
Just went back and looked at my now-locked thread in the Tips section (locked to prevent it turning into the place where everyone who ever has any problem with a map posts his questions). It needs a bit of updating, which I will do shortly.
But the first link still seems to be the best guide to getting a Google map key (it was updated on May 1, 2019):
https://developers.google.com/maps/documentation/javascript/get-api-key
Is there really any need to replicate that information? Wouldn't that just introduce errors?
|
|
|
Posts:
208
Registered:
21-Nov-2008
|
|
|
Re: Maps - API Keys - Payment Method Now Required
Posted:
29 May 19, 21:33
in response to: JeffTucker
|
|
|
Errors? Maybe but I got confused at step 2. Is that not directed at others whereas we jAlbum users need to enter the key in settings?
I fumbled around elsewhere in the guide, e.g., in the page where one selects the type of use - three (at leaast) for maps, which guessed at and lucked-out.
/Roger
|
|
|
Posts:
7,967
Registered:
31-Jan-2006
|
|
|
Re: Maps - API Keys - Payment Method Now Required
Posted:
29 May 19, 21:38
in response to: linuxrog
|
|
|
I'm just saying that any attempt to rewrite the "official" explanation of how to get a key is likely to make a muddle of it. But have at it, if you're so inclined.
|
|
|
Posts:
208
Registered:
21-Nov-2008
|
|
|
Re: Maps - API Keys - Payment Method Now Required
Posted:
27 Nov 22, 22:41
in response to: Laza
|
|
|
I got a bill from Google today. It appeared to be for the Maps API.
AND, it appears to be for $0.00.
Given the complexity of setting this up, jAlbum might give thought to setting up an API that can go across users — be univerally usable. I'm thinking** the cost may be a minimal one for paid users.
/Roger
-
- I used to get paid to think but, not any more.
P.S. Glad things have stayed stable since I implemented the maps API - I don't think I could replicate.
|
|
|
Posts:
7,967
Registered:
31-Jan-2006
|
|
|
Re: Maps - API Keys - Payment Method Now Required
Posted:
27 Nov 22, 22:49
in response to: linuxrog
|
 |
Correct |
|
|
Given the complexity of setting this up, jAlbum might give thought to setting up an API that can go across users — be univerally usable. I'm thinking** the cost may be a minimal one for paid users.
Look up the "tragedy of the commons."
In short, if just one jAlbum user hosted a hugely popular site that got oodles of traffic, all of it using Google maps, the cost could spiral out of control in a hurry, and all with no way to monitor or control it.
|
|
|
Posts:
4,046
Registered:
4-Aug-2006
|
|
|
Posts:
2,279
Registered:
14-Dec-2007
|
|
|
Posts:
208
Registered:
21-Nov-2008
|
|
|
Re: Maps - API Keys - Payment Method Now Required
Posted:
29 Nov 22, 01:48
in response to: JeffTucker
|
|
|
Jeff: Of course, upon reflection, you are correct.
/Roger
|
|
|
|
Legend
|
|
Forum admins
|
|
Helpful Answer
|
|
Correct Answer
|
|