1

Topic: google API Map an error of determination of a geoposition

Greetings to all!
I want to make that on idle time html to page the geoposition of the user which on it came was defined.
For this purpose began to use google API Map. I do all by this example
https://developers.google.com/maps/docu … t-yourself
More truly as I do, simply copied and interposed to myself.
The file is in a site root index.html
Beforehand  API_KEY
In adjustments specified
Restriction for a key - HTTP-sources of passage (web sites)
HTTP-sources of passage (web sites)
*.site.com/*
site.com/*
site.com
And strangely enough, that does not work...
In firefox works, in all remaining , and not only at me writes an error
Error: The Geolocation service failed.
Prompt what not so made? Where to dig?

2

Re: google API Map an error of determination of a geoposition

yardie;
Try to come on your page chrome in a mode incognito.
Most likely you forbade the browser to define your position.

3

Re: google API Map an error of determination of a geoposition

mage.lan;
Is not present did not forbid;
Transiting under this link, the browser chrome gives a geoposition and it will be displayed on a card:
https://developers.google.com/maps/docu … t-yourself
Doing all too most, + we interpose the API KEY I receive an error
Error: The Geolocation service failed.

4

Re: google API Map an error of determination of a geoposition

yardie;
I was earlier on this page, forbade geolocation and at discovery repeatedly it to me produces your error.

5

Re: google API Map an error of determination of a geoposition

mage.lan;
Why then in Google example all works?