Go: x/mobile/exp/sensor: geolocation

Created on 20 Dec 2015  Â·  6Comments  Â·  Source: golang/go

Add to x/mobile the ability to retrieve current latitude/longitude from e.g. GPS. (Relates to #9330)

mobile

Most helpful comment

:+1: GPS API

All 6 comments

The feature request may fit in the responsibilities of the sensor package but there are two nitpicks:

  • Sensor package is event driven, will push lat/lon changes rather than returning the last known location. I am not sure if this is the desired API for location data.
  • Location data retrieval can be configured with various filters on both platforms, e.g. distance filters, precision levels (gps-only or gps- or network-based location). We need a API surface.

/cc @crawshaw @hyangah

:+1: GPS API

Is there any work on this? I have geolocation needs and would prefer to stay in Go. It wouldn't be that hard to create an API for this one feature would it? If there is no work on it, I'll have to just bind my Go, which isn't what I'd like to do.

Same boat here as @Oregon-Tech-Ninja and would love to see GPS in Go :). @Oregon-Tech-Ninja did you find an alternate solution you can share by any change?

I was thinking of a library in iOS and Android that were just functions you
could call from go to get all the native features like GPS and
accelerometer. I haven't looked too much into it though.

On Jan 26, 2017 7:35 AM, "Bruce" notifications@github.com wrote:

Same boat here as @Oregon-Tech-Ninja
https://github.com/Oregon-Tech-Ninja and would love to see GPS in Go
:). @Oregon-Tech-Ninja https://github.com/Oregon-Tech-Ninja did you
find an alternate solution you can share by any change?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/golang/go/issues/13695#issuecomment-275419236, or mute
the thread
https://github.com/notifications/unsubscribe-auth/APmUR5ABdbeUVSKBJnF1nOZeYpALjedvks5rWL1fgaJpZM4G46oV
.

This would be amazing

Was this page helpful?
0 / 5 - 0 ratings