| OLD | NEW |
| (Empty) |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 [DartPackage="mojo_services"] | |
| 6 module mojo; | |
| 7 | |
| 8 // A location fix representing a geographic location (latitude, longitude, time) | |
| 9 // and associated information like altitude, bearing, etc. | |
| 10 // | |
| 11 // This is based on | |
| 12 // http://developer.android.com/reference/android/location/Location.html . | |
| 13 struct Location { | |
| 14 // UTC time of this fix, in milliseconds since January 1, 1970. | |
| 15 uint64 time; | |
| 16 | |
| 17 // Time of this fix, in elapsed real-time since some fixed reference point. | |
| 18 // The refernce point may depend on the underlying platform and should only | |
| 19 // be used for comparison within the same connection. | |
| 20 // For example, android may use system boot as a reference point. | |
| 21 bool has_elapsed_real_time_nanos = false; | |
| 22 uint64 elapsed_real_time_nanos; | |
| 23 | |
| 24 // In degrees. | |
| 25 double latitude; | |
| 26 | |
| 27 // In degrees. | |
| 28 double longitude; | |
| 29 | |
| 30 // Altitude in meters above the WGS 84 reference ellipsoid. | |
| 31 bool has_altitude = false; | |
| 32 double altitude; | |
| 33 | |
| 34 // Speed in meters/second over ground. | |
| 35 bool has_speed = false; | |
| 36 float speed; | |
| 37 | |
| 38 // In degrees. | |
| 39 bool has_bearing = false; | |
| 40 float bearing; | |
| 41 | |
| 42 // Estimated accuracy of this fix in meters. | |
| 43 bool has_accuracy = false; | |
| 44 float accuracy; | |
| 45 }; | |
| OLD | NEW |