in theory, if all you want to do is make a GET request
to an HTTP(S) server and wait for some reply, you can
do that easily with the okhttputils2 service and the okhttp
library. but under normal circumstances, i don't see the
point of such a standalone operation. you get your answer,
but then what?
android supports gnss already. in fact, it's mandatory with
recent devices and versions of the os. i'm wondering if
you're writing something which is already built into your
device. also, i believe member agraham has an unpdated
gps library taking this into account.
the okhttputils2 approach is about, like, 4 lines of code with
pretty much everything you need. there is also async sockets,
but not applicable just to receive a simple answer to a single
GET. i can't help but think you've got something else going
on, eg some kind of real time communication between your
app and a gnss service. if that's the case, i believe this is
already doable with android and without any connection to
a dedicated server. you would use agraham's gps library
(it's called gps, but android uses gnss)