Project

General

Profile

tickets #50126

Google map API changed.

Added by lllevonnn about 1 year ago. Updated 5 months ago.

Status:
Workable
Priority:
Normal
Assignee:
opensuse-admin
Category:
Mirrors
Start date:
2019-04-08
Due date:
% Done:

0%

Estimated time:
Duration:

Description

Hi,

Just noticed that link named "Map showing the closest mirrors" in "Details" (see attached picture), is not working properly.
It seems that Google API is changed sometime ago and it stopped working. I get following error:
The Google Maps Platform server rejected your request. You must use an API key to authenticate each request to Google Maps Platform APIs. For additional information, please refer to http://g.co/dev/maps-no-account

Please have a look.

download.opensuse.org.png (114 KB) download.opensuse.org.png lllevonnn, 2019-04-08 12:21
7817

History

#1 Updated by okurz about 1 year ago

  • Category set to Mirrors
  • Private changed from Yes to No

Hi, thanks for the report. I can not find the according webpage, https://mirrors.opensuse.org/ looks pretty different and http://download.opensuse.org/distribution/leap/15.1/jeos/ does not show any of the like. Is this still present?

#2 Updated by bmwiedemann about 1 year ago

I think, it depends on your IP's location if the link is shown in the mirrorlist page.
e.g. http://download.opensuse.org/distribution/leap/15.1/jeos/openSUSE-Leap-15.1-JeOS.x86_64-15.1.0-kvm-and-xen-Current.qcow2.mirrorlist

Screenshot says "Armenia" and none of our mirrors are there.

https://github.com/poeml/mirrorbrain/issues/153 might help there.
Or we use openstreetmap instead.
Or we just drop the link.

#3 Updated by lllevonnn about 1 year ago

Hi, sorry somehow I completely forgot to answer to previous message.

It seems like i need to provide step by step instructions to reproduce my experience.
After going to above mentioned "http://download.opensuse.org/distribution/leap/15.1/jeos/" webpage, you need to pick a random file and click on "Details" on the right in "Metadata" column.

For this example i will choose "openSUSE-Leap-15.1-JeOS.x86_64-15.1.0-MS-HyperV-Snapshot9.87.vhdx.xz" file.
After clicking on details, You will be presented with "http://download.opensuse.org/distribution/leap/15.1/jeos/openSUSE-Leap-15.1-JeOS.x86_64-15.1.0-MS-HyperV-Snapshot9.87.vhdx.xz.mirrorlist" page.

And finally in that page you can see this unfortunate link named "Map showing the closest mirrors" pointing to
"http://maps.google.com/maps/api/staticmap?size=640x512&visual_refresh=true&scale=2&maptype=roadmap&sensor=false&markers=color:red|40.000000,45.000000&markers=color:yellow|label:1|40.181000,44.514000&markers=color:yellow|label:2|41.000000,64.000000&markers=color:yellow|label:3|22.250000,114.167000&markers=color:yellow|label:4|31.864000,117.280998&markers=color:yellow|label:5|24.805000,120.971001&markers=color:yellow|label:6|36.000000,138.000000&markers=color:yellow|label:7|35.789001,139.623001&markers=color:yellow|label:8|55.738998,37.606998&markers=color:yellow|label:9|42.700001,23.333000" page, which gives the api error.

Hope you will be able to find it now.

Regarding "Screenshot says "Armenia" and none of our mirrors are there.", I am the maintainer of the mirror in Armenia. Please have a look at "https://mirrors.opensuse.org/" and see for yourself that there is a mirror in Armenia.

#4 Updated by pjessen about 1 year ago

I can reproduce the issue, there is clearly something wrong with the the way we generate that link. If someone feels up to fixing it, we would appreciate any help, otherwise, as Bernhard suggests, we will most likely just drop the link.

#5 Updated by pjessen about 1 year ago

It looks like we only need to create an account with Google, generate a key and update the link generation with this key.
I would sort of prefer to create a google acocunt for "admin@opensuse.org", but that will no doubt lead to google spamming us and opening tickets left, right and centre.
Maybe we could create an email account called "google@o.o" ?

#6 Updated by lrupp 6 months ago

  • Status changed from New to Workable
  • Assignee set to opensuse-admin

#7 Updated by adamm 6 months ago

This needs an account with a Credit Card on it. I think Google allows to limit payments to $0 or some low amount but it still requires a payment method to prevent abuse on their end.

#8 Updated by lrupp 5 months ago

adamm wrote:

This needs an account with a Credit Card on it. I think Google allows to limit payments to $0 or some low amount but it still requires a payment method to prevent abuse on their end.

Instead of providing Google even more data, I would recommend to use something like: https://leafletjs.com/
Together with openstreetmap data, this should allow the same functionality while being open source.

Also available in: Atom PDF