geoclue2: how to get location and configureGet my country by IP in bashAutomatically set Linux timezone...
Does the talk count as invited if my PI invited me?
What would be the game balance implications for using the Gygax method for applying falling damage?
How would fantasy dwarves exist, realistically?
In Dutch history two people are referred to as "William III"; are there any more cases where this happens?
Should all adjustments be random effects in a mixed linear effect?
Why is Drogon so much better in battle than Rhaegal and Viserion?
Should I twist DC power and ground wires from a power supply?
Why does a table with a defined constant in its index compute 10X slower?
Can more than one instance of Bend Luck be applied to the same roll by multiple Wild Magic sorcerers?
FIFO data structure in pure C
Good examples of "two is easy, three is hard" in computational sciences
Divisor Rich and Poor Numbers
Why using a variable as index of a list-item does not retrieve that item with clist_item:Nn?
on the truth quest vs in the quest for truth
Is my homebrew Awakened Bear race balanced?
Working hours and productivity expectations for game artists and programmers
Is there any deeper thematic meaning to the white horse that Arya finds in The Bells (S08E05)?
Why would company (decision makers) wait for someone to retire, rather than lay them off, when their role is no longer needed?
How to draw pentagram-like shape in Latex?
How do you cope with rejection?
Will this series of events work to drown the Tarrasque?
Why are there five extra turns in tournament Magic?
Was Tyrion always a poor strategist?
how to create an executable file for an AppleScript?
geoclue2: how to get location and configure
Get my country by IP in bashAutomatically set Linux timezone according to locationViking GPS editor/viewer: how to scroll the map while entering points in a track?How to add a custom GPS location to a picture?Is it possible to redirect ssh traffic (not forward), How?How to block countries (iptables OR firewalld) by GeoLite2 mmdb
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
At the command line, how do I get the current location that geoclue2 would report?
There's no man page or bin/ executable in my Arch package.
redshift (which uses geoclue2) is reporting my location as:
7.98 98.37
But google maps gives me:
9.749160, 99.975484
Is there any way to configure what sources geoclue2 uses to get better accuracy?
Most google geoclue2 searches bring up redshift which isn't too helpful :(
geolocation geoclue
add a comment |
At the command line, how do I get the current location that geoclue2 would report?
There's no man page or bin/ executable in my Arch package.
redshift (which uses geoclue2) is reporting my location as:
7.98 98.37
But google maps gives me:
9.749160, 99.975484
Is there any way to configure what sources geoclue2 uses to get better accuracy?
Most google geoclue2 searches bring up redshift which isn't too helpful :(
geolocation geoclue
why geoclue2 only and for what use you need it?
– Rui F Ribeiro
Nov 5 '18 at 11:40
@RuiFRibeiro I currently use it forredshift. Thegeocluedoco implies that they should be accurate, so I'm trying to work out why it's not. Alsogeoclueis the only Linux choice for Mozilla Location Service if not using KDE
– Tom Hale
Nov 5 '18 at 11:55
For applicational use, I prefer the MaxMind databases/geoIP command/APIs. The API itself seems to be fast enough, I have of people feeding the coordinates in the DB to redis.
– Rui F Ribeiro
Nov 5 '18 at 12:15
@RuiFRibeiro Thanks. I'm now using the Google Geolocation API (see my answer)
– Tom Hale
Nov 6 '18 at 5:45
add a comment |
At the command line, how do I get the current location that geoclue2 would report?
There's no man page or bin/ executable in my Arch package.
redshift (which uses geoclue2) is reporting my location as:
7.98 98.37
But google maps gives me:
9.749160, 99.975484
Is there any way to configure what sources geoclue2 uses to get better accuracy?
Most google geoclue2 searches bring up redshift which isn't too helpful :(
geolocation geoclue
At the command line, how do I get the current location that geoclue2 would report?
There's no man page or bin/ executable in my Arch package.
redshift (which uses geoclue2) is reporting my location as:
7.98 98.37
But google maps gives me:
9.749160, 99.975484
Is there any way to configure what sources geoclue2 uses to get better accuracy?
Most google geoclue2 searches bring up redshift which isn't too helpful :(
geolocation geoclue
geolocation geoclue
asked Nov 5 '18 at 11:28
Tom HaleTom Hale
7,939348108
7,939348108
why geoclue2 only and for what use you need it?
– Rui F Ribeiro
Nov 5 '18 at 11:40
@RuiFRibeiro I currently use it forredshift. Thegeocluedoco implies that they should be accurate, so I'm trying to work out why it's not. Alsogeoclueis the only Linux choice for Mozilla Location Service if not using KDE
– Tom Hale
Nov 5 '18 at 11:55
For applicational use, I prefer the MaxMind databases/geoIP command/APIs. The API itself seems to be fast enough, I have of people feeding the coordinates in the DB to redis.
– Rui F Ribeiro
Nov 5 '18 at 12:15
@RuiFRibeiro Thanks. I'm now using the Google Geolocation API (see my answer)
– Tom Hale
Nov 6 '18 at 5:45
add a comment |
why geoclue2 only and for what use you need it?
– Rui F Ribeiro
Nov 5 '18 at 11:40
@RuiFRibeiro I currently use it forredshift. Thegeocluedoco implies that they should be accurate, so I'm trying to work out why it's not. Alsogeoclueis the only Linux choice for Mozilla Location Service if not using KDE
– Tom Hale
Nov 5 '18 at 11:55
For applicational use, I prefer the MaxMind databases/geoIP command/APIs. The API itself seems to be fast enough, I have of people feeding the coordinates in the DB to redis.
– Rui F Ribeiro
Nov 5 '18 at 12:15
@RuiFRibeiro Thanks. I'm now using the Google Geolocation API (see my answer)
– Tom Hale
Nov 6 '18 at 5:45
why geoclue2 only and for what use you need it?
– Rui F Ribeiro
Nov 5 '18 at 11:40
why geoclue2 only and for what use you need it?
– Rui F Ribeiro
Nov 5 '18 at 11:40
@RuiFRibeiro I currently use it for
redshift. The geoclue doco implies that they should be accurate, so I'm trying to work out why it's not. Also geoclue is the only Linux choice for Mozilla Location Service if not using KDE– Tom Hale
Nov 5 '18 at 11:55
@RuiFRibeiro I currently use it for
redshift. The geoclue doco implies that they should be accurate, so I'm trying to work out why it's not. Also geoclue is the only Linux choice for Mozilla Location Service if not using KDE– Tom Hale
Nov 5 '18 at 11:55
For applicational use, I prefer the MaxMind databases/geoIP command/APIs. The API itself seems to be fast enough, I have of people feeding the coordinates in the DB to redis.
– Rui F Ribeiro
Nov 5 '18 at 12:15
For applicational use, I prefer the MaxMind databases/geoIP command/APIs. The API itself seems to be fast enough, I have of people feeding the coordinates in the DB to redis.
– Rui F Ribeiro
Nov 5 '18 at 12:15
@RuiFRibeiro Thanks. I'm now using the Google Geolocation API (see my answer)
– Tom Hale
Nov 6 '18 at 5:45
@RuiFRibeiro Thanks. I'm now using the Google Geolocation API (see my answer)
– Tom Hale
Nov 6 '18 at 5:45
add a comment |
2 Answers
2
active
oldest
votes
In my /etc/geoclue/geoclue.conf, I added:
[wifi]
enable=true
I wasn't happy with the accuracy returned from Mozilla Location Service:
{"location": {"lat": 10.0981, "lng": 99.8381}, "accuracy": 25000.0}
So I setup a Google API key as noted the text:
# To use the Google geolocation service instead of mozilla's, simply uncomment
# this url while changing API_KEY to your Google API key and comment out or
# remove the url above.
#
# WARNING: Please make sure that you are complying with the Google's ToS and
# policies if you uncomment this:
#
# https://developers.google.com/maps/documentation/geolocation/policies
#
# url=https://www.googleapis.com/geolocation/v1/geolocate?key=<YOUR-KEY>
The pricing page says that 40,000 Geolocation calls are included free :)
However, I found after restarting both geoclue2 and redshift that redshift -v was reporting a worse accuracy, so I reverted to Mozilla's API (which is the default).
add a comment |
Something New?
Kick on your cell phone using the same ip net access as your pc. Enable your location on your droid or google phone and geoclue should nail your public IP address and anything connected to it.
So if your wi-fi or system is hacked by a local cartel of any nature doing anything ilegal, You are totally.....
New contributor
user353379 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f479880%2fgeoclue2-how-to-get-location-and-configure%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
In my /etc/geoclue/geoclue.conf, I added:
[wifi]
enable=true
I wasn't happy with the accuracy returned from Mozilla Location Service:
{"location": {"lat": 10.0981, "lng": 99.8381}, "accuracy": 25000.0}
So I setup a Google API key as noted the text:
# To use the Google geolocation service instead of mozilla's, simply uncomment
# this url while changing API_KEY to your Google API key and comment out or
# remove the url above.
#
# WARNING: Please make sure that you are complying with the Google's ToS and
# policies if you uncomment this:
#
# https://developers.google.com/maps/documentation/geolocation/policies
#
# url=https://www.googleapis.com/geolocation/v1/geolocate?key=<YOUR-KEY>
The pricing page says that 40,000 Geolocation calls are included free :)
However, I found after restarting both geoclue2 and redshift that redshift -v was reporting a worse accuracy, so I reverted to Mozilla's API (which is the default).
add a comment |
In my /etc/geoclue/geoclue.conf, I added:
[wifi]
enable=true
I wasn't happy with the accuracy returned from Mozilla Location Service:
{"location": {"lat": 10.0981, "lng": 99.8381}, "accuracy": 25000.0}
So I setup a Google API key as noted the text:
# To use the Google geolocation service instead of mozilla's, simply uncomment
# this url while changing API_KEY to your Google API key and comment out or
# remove the url above.
#
# WARNING: Please make sure that you are complying with the Google's ToS and
# policies if you uncomment this:
#
# https://developers.google.com/maps/documentation/geolocation/policies
#
# url=https://www.googleapis.com/geolocation/v1/geolocate?key=<YOUR-KEY>
The pricing page says that 40,000 Geolocation calls are included free :)
However, I found after restarting both geoclue2 and redshift that redshift -v was reporting a worse accuracy, so I reverted to Mozilla's API (which is the default).
add a comment |
In my /etc/geoclue/geoclue.conf, I added:
[wifi]
enable=true
I wasn't happy with the accuracy returned from Mozilla Location Service:
{"location": {"lat": 10.0981, "lng": 99.8381}, "accuracy": 25000.0}
So I setup a Google API key as noted the text:
# To use the Google geolocation service instead of mozilla's, simply uncomment
# this url while changing API_KEY to your Google API key and comment out or
# remove the url above.
#
# WARNING: Please make sure that you are complying with the Google's ToS and
# policies if you uncomment this:
#
# https://developers.google.com/maps/documentation/geolocation/policies
#
# url=https://www.googleapis.com/geolocation/v1/geolocate?key=<YOUR-KEY>
The pricing page says that 40,000 Geolocation calls are included free :)
However, I found after restarting both geoclue2 and redshift that redshift -v was reporting a worse accuracy, so I reverted to Mozilla's API (which is the default).
In my /etc/geoclue/geoclue.conf, I added:
[wifi]
enable=true
I wasn't happy with the accuracy returned from Mozilla Location Service:
{"location": {"lat": 10.0981, "lng": 99.8381}, "accuracy": 25000.0}
So I setup a Google API key as noted the text:
# To use the Google geolocation service instead of mozilla's, simply uncomment
# this url while changing API_KEY to your Google API key and comment out or
# remove the url above.
#
# WARNING: Please make sure that you are complying with the Google's ToS and
# policies if you uncomment this:
#
# https://developers.google.com/maps/documentation/geolocation/policies
#
# url=https://www.googleapis.com/geolocation/v1/geolocate?key=<YOUR-KEY>
The pricing page says that 40,000 Geolocation calls are included free :)
However, I found after restarting both geoclue2 and redshift that redshift -v was reporting a worse accuracy, so I reverted to Mozilla's API (which is the default).
edited Nov 6 '18 at 6:09
answered Nov 6 '18 at 5:44
Tom HaleTom Hale
7,939348108
7,939348108
add a comment |
add a comment |
Something New?
Kick on your cell phone using the same ip net access as your pc. Enable your location on your droid or google phone and geoclue should nail your public IP address and anything connected to it.
So if your wi-fi or system is hacked by a local cartel of any nature doing anything ilegal, You are totally.....
New contributor
user353379 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
Something New?
Kick on your cell phone using the same ip net access as your pc. Enable your location on your droid or google phone and geoclue should nail your public IP address and anything connected to it.
So if your wi-fi or system is hacked by a local cartel of any nature doing anything ilegal, You are totally.....
New contributor
user353379 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
Something New?
Kick on your cell phone using the same ip net access as your pc. Enable your location on your droid or google phone and geoclue should nail your public IP address and anything connected to it.
So if your wi-fi or system is hacked by a local cartel of any nature doing anything ilegal, You are totally.....
New contributor
user353379 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Something New?
Kick on your cell phone using the same ip net access as your pc. Enable your location on your droid or google phone and geoclue should nail your public IP address and anything connected to it.
So if your wi-fi or system is hacked by a local cartel of any nature doing anything ilegal, You are totally.....
New contributor
user353379 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
user353379 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered 2 hours ago
user353379user353379
1
1
New contributor
user353379 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
user353379 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f479880%2fgeoclue2-how-to-get-location-and-configure%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
why geoclue2 only and for what use you need it?
– Rui F Ribeiro
Nov 5 '18 at 11:40
@RuiFRibeiro I currently use it for
redshift. Thegeocluedoco implies that they should be accurate, so I'm trying to work out why it's not. Alsogeoclueis the only Linux choice for Mozilla Location Service if not using KDE– Tom Hale
Nov 5 '18 at 11:55
For applicational use, I prefer the MaxMind databases/geoIP command/APIs. The API itself seems to be fast enough, I have of people feeding the coordinates in the DB to redis.
– Rui F Ribeiro
Nov 5 '18 at 12:15
@RuiFRibeiro Thanks. I'm now using the Google Geolocation API (see my answer)
– Tom Hale
Nov 6 '18 at 5:45