leapconnect icon indicating copy to clipboard operation
leapconnect copied to clipboard

Longitude bug for West Hemisphere (Portugal/UK) - Car shown in Italy

Open Andreexylus opened this issue 5 months ago • 5 comments

Hi! First of all, thank you for this awesome add-on. I'm using LeapConnect with a Leapmotor B10 in Portugal (West Hemisphere). There is a minor bug in how coordinates are processed: the minus sign (-) for longitude is being stripped or ignored.

My real coordinates are latitude: 38.9xxxxx and longitude: -8.8xxxxx However, LeapConnect publishes longitude: 8.8xxxxx (positive) to MQTT. Because of this absolute value, the car is rendered on the internal application map in Italy instead of Portugal.

Could you please check the coordinate parsing backend to preserve the negative sign for Western longitudes? Thank you!

Andreexylus avatar Jun 15 '26 09:06 Andreexylus

Hi @Andreexylus, thanks for the detailed report!

LeapConnect publishes the longitude exactly as it arrives from the Leapmotor cloud, without any transformation. So to fix this correctly I need to see the raw payload your B10 returns for the GPS signals, to find where the West/East hemisphere sign is encoded.

You can grab it in this way:

  1. Open LeapConnect -> Settings
  2. Go to the Advanced section
  3. Scroll to Debug -> click Show Raw JSON
  4. Copy the full JSON (in particular the signal block, look for the fields around 3724/3725)

That output contains your exact GPS position, so if you'd rather not post it publicly, feel free to send it to me privately.

With that I can pinpoint the hemisphere field and ship the fix.

markoceri avatar Jun 15 '26 23:06 markoceri

Hello! Thanks for the answer. Here's Json with the "Signal" data as requested. I noticed that rows 2 and 3 have the correct values, but line 2190,2191,3724 and 3725 do not. If you need the full coordinates, I can send it privately. Thanks for the help!

{ "privacyGPS": 1, "signal": { "1": 1781587639324, "2": -8.52xxxx, "3": 38.98xxxx, "47": 1, "49": 0, "50": 0, "1010": 0, "1149": 1, "1177": 429.3, "1178": -6.799, "1182": 29, "1186": 0, "1197": 0, "1200": 320, "1204": 67, "1255": 2, "1256": 1, "1257": 1, "1258": 0, "1277": 0, "1278": 0, "1279": 0, "1280": 0, "1281": 0, "1298": 1, "1318": 1358, "1319": 0, "1349": 31, "1480": 1, "1624": 2, "1693": 0, "1694": 0, "1695": 0, "1696": 0, "1724": 0, "1816": 0, "1879": 0, "1880": 0, "1938": 0, "1939": 0, "1941": 1, "1943": 1, "1944": 5, "1945": 0, "1946": 0, "1949": 0, "2100": 0, "2101": 0, "2118": 0, "2119": 0, "2183": 18, "2188": 292, "2190": 38.9xxxx, "2191": 8.52xxxx, "2641": 0, "2646": 269, "2648": 0, "2653": 277, "2655": 0, "2660": 264, "2662": 0, "2667": 253, "2669": 0, "2681": 0, "3257": 292, "3260": 288, "3262": 0, "3273": 0, "3366": 0, "3636": 0, "3709": 0, "3710": 1, "3711": 0, "3712": 1, "3713": 1, "3724": 8.52xxxx, "3725": 38.98xxxx, "3727": 0, "3728": 0, "3734": 1, "3735": 0, "3736": 0, "3737": 1, "6047": 0, "6048": 110, "12054": 0, "100003": 67.3, "100010": "0.0", "100011": "181.4", "100012": "181.4", "100013": "0.0", "100014": "178.9", "100015": "178.9", "100016": "181.4", "100017": 68, "sts": 1781587641770 }, "config": { "3": { "cycles": "1,1,1,1,1,1,1", "endTime": "08:00", "percent": 90, "isEnable": 1, "recharge": 0, "beginTime": "22:00", "updateTime": "2026-06-15 22:00:11", "circulation": 1 }, "4": { "mac": "D4060F83FA5E", "version": "2.0", "updateTime": "2026-06-08 21:30:50" } }, "privacyData": 1 }

Andreexylus avatar Jun 16 '26 05:06 Andreexylus

Hello! Thanks for the answer. Here's Json with the "Signal" data as requested. I noticed that rows 2 and 3 have the correct values, but line 2190,2191,3724 and 3725 do not. If you need the full coordinates, I can send it privately. Thanks for the help!

{ "privacyGPS": 1, "signal": { "1": 1781587639324, "2": -8.52xxxx, "3": 38.98xxxx, "47": 1, "49": 0, "50": 0, "1010": 0, "1149": 1, "1177": 429.3, "1178": -6.799, "1182": 29, "1186": 0, "1197": 0, "1200": 320, "1204": 67, "1255": 2, "1256": 1, "1257": 1, "1258": 0, "1277": 0, "1278": 0, "1279": 0, "1280": 0, "1281": 0, "1298": 1, "1318": 1358, "1319": 0, "1349": 31, "1480": 1, "1624": 2, "1693": 0, "1694": 0, "1695": 0, "1696": 0, "1724": 0, "1816": 0, "1879": 0, "1880": 0, "1938": 0, "1939": 0, "1941": 1, "1943": 1, "1944": 5, "1945": 0, "1946": 0, "1949": 0, "2100": 0, "2101": 0, "2118": 0, "2119": 0, "2183": 18, "2188": 292, "2190": 38.9xxxx, "2191": 8.52xxxx, "2641": 0, "2646": 269, "2648": 0, "2653": 277, "2655": 0, "2660": 264, "2662": 0, "2667": 253, "2669": 0, "2681": 0, "3257": 292, "3260": 288, "3262": 0, "3273": 0, "3366": 0, "3636": 0, "3709": 0, "3710": 1, "3711": 0, "3712": 1, "3713": 1, "3724": 8.52xxxx, "3725": 38.98xxxx, "3727": 0, "3728": 0, "3734": 1, "3735": 0, "3736": 0, "3737": 1, "6047": 0, "6048": 110, "12054": 0, "100003": 67.3, "100010": "0.0", "100011": "181.4", "100012": "181.4", "100013": "0.0", "100014": "178.9", "100015": "178.9", "100016": "181.4", "100017": 68, "sts": 1781587641770 }, "config": { "3": { "cycles": "1,1,1,1,1,1,1", "endTime": "08:00", "percent": 90, "isEnable": 1, "recharge": 0, "beginTime": "22:00", "updateTime": "2026-06-15 22:00:11", "circulation": 1 }, "4": { "mac": "D4060F83FA5E", "version": "2.0", "updateTime": "2026-06-08 21:30:50" } }, "privacyData": 1 }

Do signals 3724 and 3725 (or even signals 2190 and 2191) have letters as the last character of the coordinates?

markoceri avatar Jun 17 '26 22:06 markoceri

No. rows 3724/3725 and 2190/2191 have the complete coordinates. But since they're from my house I've removed. I can send it privately if I need to.

Andreexylus avatar Jun 18 '26 11:06 Andreexylus

I used coordinates from 2 and 3 signals. The fix is in the release v0.11.0

markoceri avatar Jun 21 '26 23:06 markoceri