Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get Google Glass location change notification inside my Glassware

Could you please guide me how doing this. I have to get used location changes and have to send some information depend on that location.

like image 490
Sanath Avatar asked Dec 28 '25 01:12

Sanath


1 Answers

See https://developers.google.com/glass/location and https://developers.google.com/glass/v1/reference/locations for complete information about using Locations with Google Glass.

Keep in mind that you need to request the additional scope https://www.googleapis.com/auth/glass.location in order to get any location information.

Once you have done this, Glass will attach the most recently known location (usually where you have been sometime in the past 10 minutes) to any timeline items reported to you.

At any time you can get a list of location updates available, or the "latest" location available from Glass. Additionally, you can subscribe to the "locations" collection (see https://developers.google.com/glass/v1/reference/subscriptions) and you will receive a location change notice roughly every 10 minutes which includes an ID to fetch the associated location.

like image 163
Prisoner Avatar answered Dec 31 '25 00:12

Prisoner



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!