enricofer / go2streetview

22 stars 22 forks source link

API error: RefererNotAllowedMapError #46

Closed ArnaudC-10 closed 3 weeks ago

ArnaudC-10 commented 4 years ago

Hello, I have done all the process you describe to add the API key to your Qgis plugin, perhaps the screen stay grey with a error message. Go2StreetView error

When I look in console the message is : Google Maps JavaScript API error: RefererNotAllowedMapError https://developers.google.com/maps/documentation/javascript/error-messages#referer-not-allowed-map-error Your site URL to be authorized: __file_url__//C:/Users/courcoux/AppData/Roaming/QGIS/QGIS3/profiles/default/python/plugins/go2streetview/res/g2sv.html?lat=48.291933071526564&long=4.14887683796246&width=800&height=268&heading=117&APIkey=mykey

Here is my config API Config API

Can you help me ? Thanks for all

enricofer commented 4 years ago

did you insert key in about plugin dialog? [image: Screenshot 2019-07-16 11.46.20.png]

Il giorno mar 16 lug 2019 alle ore 09:59 ArnaudC-10 < notifications@github.com> ha scritto:

Hello, I have done all the process you describe to add the API key to your Qgis plugin, perhaps the screen stay grey with a error message. [image: Go2StreetView error] https://user-images.githubusercontent.com/52952426/61275603-97890c00-a7ae-11e9-8c08-facc8a8ec64b.jpg

When I look in console the message is : Google Maps JavaScript API error: RefererNotAllowedMapError

https://developers.google.com/maps/documentation/javascript/error-messages#referer-not-allowed-map-error Your site URL to be authorized: file_url //C:/Users/courcoux/AppData/Roaming/QGIS/QGIS3/profiles/default/python/plugins/go2streetview/res/g2sv.html?lat=48.291933071526564&long=4.14887683796246&width=800&height=268&heading=117&APIkey=mykey

Here is my config API [image: Config API] https://user-images.githubusercontent.com/52952426/61276426-4e39bc00-a7b0-11e9-896b-64c71055f939.jpg

Can you help me ? Thanks for all

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/enricofer/go2streetview/issues/46?email_source=notifications&email_token=ABZSBA2TQ6QS4KIJJXELMH3P7V5XNA5CNFSM4ID6ELGKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G7M2NCQ, or mute the thread https://github.com/notifications/unsubscribe-auth/ABZSBA3NWGH75DU3YF4I4Q3P7V5XNANCNFSM4ID6ELGA .

ArnaudC-10 commented 4 years ago

Yes I did

enricofer commented 4 years ago

I'm looking into https://stackoverflow.com/questions/35288250/google-maps-javascript-api-referernotallowedmaperror where a comment state that referrer slot "is supposed to be an optional property and if it blank it should work" almost for localhost.

ArnaudC-10 commented 4 years ago

I also read this forum but it's not possible to let the refferer blank, and don't know what refferer put. I don't have localhost because Qgis is only in my computer. I read since 16 july 2018, we should pay to use StreetView API ! Is it true ?