This question is answered.


Permlink Replies: 11 - Pages: 1 - Last Post: 29 Nov 22, 11:07 Last Post By: linuxrog Threads: [ Previous | Next ]
linuxrog

Posts: 208
Registered: 21-Nov-2008
Maps - API Keys - Payment Method Now Required
Posted: 29 May 19, 03:57
 
  Click to reply to this thread Reply
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
Laza

Posts: 1,610
Registered: 6-Sep-2005
Re: Maps - API Keys - Payment Method Now Required
Posted: 29 May 19, 10:29   in response to: linuxrog in response to: linuxrog
Helpful
  Click to reply to this thread Reply
Yes, I wasn't confident either when I had to give my Credit Card for Google Could services. I tried to monitor the usage since, and it turned out it's still far below the free usage limits, even though I have quite a few albums with maps. Since then I get a bill every month from them with $0 on it.

We could have a blog post about this to dare users. Also we might need to add other map integration options in skins in the future. The other good map solution is Nokia's Here maps, but that also has the same business model with a bit higher margin on free usage. The totally free options - e.g. OpenStreetMap - doesn't have all the features the big players have, but still might worth an effort integrating them.
JeffTucker

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 in response to: Laza
Helpful
  Click to reply to this thread Reply
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.
linuxrog

Posts: 208
Registered: 21-Nov-2008
Re: Maps - API Keys - Payment Method Now Required
Posted: 29 May 19, 19:19   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
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
JeffTucker

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 in response to: linuxrog
 
  Click to reply to this thread Reply
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?
linuxrog

Posts: 208
Registered: 21-Nov-2008
Re: Maps - API Keys - Payment Method Now Required
Posted: 29 May 19, 21:33   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
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
JeffTucker

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 in response to: linuxrog
 
  Click to reply to this thread Reply
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.
linuxrog

Posts: 208
Registered: 21-Nov-2008
Re: Maps - API Keys - Payment Method Now Required
Posted: 27 Nov 22, 22:41   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
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.
JeffTucker

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 in response to: linuxrog
Correct
  Click to reply to this thread Reply
linuxrog wrote:
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.
RobM

Posts: 4,046
Registered: 4-Aug-2006
Re: Maps - API Keys - Payment Method Now Required
Posted: 27 Nov 22, 23:24   in response to: linuxrog in response to: linuxrog
 
  Click to reply to this thread Reply
Maybe a non-Google map solution, like MarkusD’s external tool for a leaflet map with markers, would be of interest.
AndreWolff

Posts: 2,279
Registered: 14-Dec-2007
Re: Maps - API Keys - Payment Method Now Required
Posted: 27 Nov 22, 23:49   in response to: linuxrog in response to: linuxrog
 
  Click to reply to this thread Reply
If you like you can use OSM maps for the locations if you use the FancyBox skin or the PhotoSwipe skin or the LightGallery skin. For other skins see here.
linuxrog

Posts: 208
Registered: 21-Nov-2008
Re: Maps - API Keys - Payment Method Now Required
Posted: 29 Nov 22, 01:48   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Jeff: Of course, upon reflection, you are correct.

/Roger
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums