- Proposal: SDL-0199
- Author: Ankur Tiwari
- Status: Accepted
- Impacted Platforms: [Core / iOS / Android / RPC]
To add shifted param for GPS data struct so that HMI can communicate to app when GPS data is shifted using an algorithm
China region needs GPS data to be corrected using proprietary algorithm to bridge the gap between different standards used. HMI would need to communicate the same to phone app as GPS data shift is applied based on location (e.g. Hong Kong, Macau do not need the correction).
Add new param shifted in GPSData struct as follows:
- HMI API (in Common interface)
<struct name="GPSData">
<description>Struct with the GPS data.</description>
<param name="longitudeDegrees" type="Float" minvalue="-180" maxvalue="180" mandatory="false">
</param>
<param name="latitudeDegrees" type="Float" minvalue="-90" maxvalue="90" mandatory="false">
</param>
.
.
.
.
<param name="speed" type="Float" minvalue="0" maxvalue="500" mandatory="false">
<description>The speed in KPH</description>
</param>
<param name="shifted" type="Boolean" mandatory="false" since="x.y">
<description>
True, if GPS lat/long, time, and altitude have been purposefully shifted (requires a proprietary algorithm to unshift).
False, if the GPS data is raw and un-shifted.
If not provided, then value is assumed False.
</description>
</param>
</struct>
- Mobile API
<struct name="GPSData">
<description>Struct with the GPS data.</description>
<param name="longitudeDegrees" type="Float" minvalue="-180" maxvalue="180" mandatory="true">
</param>
<param name="latitudeDegrees" type="Float" minvalue="-90" maxvalue="90" mandatory="true">
</param>
.
.
.
.
<param name="speed" type="Float" minvalue="0" maxvalue="500" mandatory="true">
<description>The speed in KPH</description>
</param>
<param name="shifted" type="Boolean" mandatory="false" since="x.y">
<description>
True, if GPS lat/long, time, and altitude have been purposefully shifted (requires a proprietary algorithm to unshift).
False, if the GPS data is raw and un-shifted.
If not provided, then value is assumed False.
</description>
</param>
</struct>
None
SDL core and proxy would need update.
To not send the shifted information, but then it'd not be possible for phone app to know if it needs to compensate for shifted/unshifted GPS data.