Page 1 of 1

option for 'location' answer

Posted: 2021-09-21, 08:49
by Astara
Instead of passing back some location based off my IP (which varies from Santa Rosa, down to Santa Maria, as far south as a bit north of Santa Barbara, Berkeley, various places around San Francisco...etc), but never in the city or zip code where I live.

For a long time, I've regarded this as mostly a good thing, but figured, they are feeding mostly buloney to make me feel like they
don't know where I am at (despite my fighting w/my ISP over my reverse IP listing listing my full personal name instead of my business name that I signed up with, and the name of the town I'm in. And they won't change it. A****. Whatever.

Anyway, I'm getting tired of places asking for my location when I'd like to give it to them and once they get it -- they are sure that I'm someplace that has no service that I want.

So when PM asks if it can give out my location, I'd like it to be 2 answers -- one, wherever random IP-location seems to place me (current algorithm), and one which can give them accuracy to my real zip-code.

Is that possible in some new version of the location api?

FWIW -- I'm on a desktop on a home, fixed-IP system, so it's not like it really should be moving around much! ;-)

Tnx!

Re: option for 'location' answer

Posted: 2021-09-21, 09:17
by Moonchild
Geopositioning (the way geolocation requests are satisfied by Pale Moon) is based on the service responses from ip-api.com which tends to be fairly accurate but may jump around based on database changes. Especially if you have a fixed IP in a "business pool" this location data response may be incorrect because such pools tend to be assigned across the entire service area of the ISP.

Being able to provide a custom set of coordinates instead of making the API request should be trivial to add. See NetworkGeolocationProvider.js -- if anyone wants to offer a patch to that effect (e.g. having the desired lat, long stored in a ".override" pref) then that's certainly welcome.

Re: option for 'location' answer

Posted: 2021-09-21, 11:15
by hitokage
There is a way to set specific GPS coordinates by changing the pref geo.wifi.uri (that's an "i" at the end, not an "L") in about:config to point to a custom JSON file.

When I want to share my actual location, I allow the location request. When I don't, I deny the request/close the location request box, and then the website in question generally uses their own guess of my location based on IP address.

I have a file called GPS.json that I've placed into C:\Users\Public. It's a plain text file that contains the following (coordinates are an example):

Code: Select all

{
"lat":38.978889,
"lon":-76.491111,
"status":"success"
}
Then I have geo.wifi.uri in about:config set to file:///C:/Users/Public/GPS.json.

At one point Firefox allowed the coordinate data to be directly in the about:config entry, but they seemed to have changed it a long time ago (at least I couldn't get it to work that way) and that was carried over to Pale Moon.

Re: option for 'location' answer

Posted: 2021-09-21, 12:01
by Moonchild
Right, I thought about that just now before returning to this thread but you were ahead of me. It won't require any changes to the browser :)

Re: option for 'location' answer

Posted: 2021-09-21, 15:55
by RealityRipple
Off-topic:
Wow, didn't think anyone using Pale Moon was anywhere near me. I'm in Nipomo, just a bit north of Santa Maria.

Re: option for 'location' answer

Posted: 2021-09-21, 16:30
by Astara
RealityRipple wrote:
2021-09-21, 15:55
Off-topic:
Wow, didn't think anyone using Pale Moon was anywhere near me. I'm in Nipomo, just a bit north of Santa Maria.
Well my location used to be down there...not recently though...pretty good for a server/desktop machine. :-)