C
C
Cat Scientist2016-01-06 18:07:23
JavaScript
Cat Scientist, 2016-01-06 18:07:23

How to exclude or set data sources for Geolocation API?

At the moment I'm trying to establish a user's location with minimal participation. When calling the Geolocation API on a desktop computer, I found this:
I am in city #1. However, browsers that support the API do not return errors, and, for example, Chrome determines the city correctly, and Firefox determines my location as city #2 (at 100 km). Both cities have my ISP, which I think is GeoIP - each browser just polls its own REST service.
I would like to know - is it possible to disable GeoIP in the Geolocation API, or at least set a custom data source?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2016-01-07
@freeExec

So do not ask the browser, use your service, which will return the coordinates to you with regular ajax.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question