Page 3 of 5
Re: Map of municipalities (France and Luxembourg)
Posted: Wed Nov 22, 2023 5:48 pm
by Burdie
I am trying to login to update my stats (I am now in France) but there is no response. Maybe it had to do that the EBT server is changed.
Update.
Sorry, all sorted. Used wrong password
.
Re: Map of municipalities (France and Luxembourg)
Posted: Wed Nov 22, 2023 11:10 pm
by groentje
This is great!
Re: Map of municipalities (France and Luxembourg)
Posted: Thu Nov 23, 2023 12:17 am
by aloxe
New update soon
online:
- fix a bug dropping homonym municipalities if they we both visited
- take into account municipalities with postcode out of their administrative district
- redesigned database to spead up some requests
- refactor map generation so it doesn't get over the server memory limit
- oh and I changed colours

Re: Map of municipalities (France and Luxembourg)
Posted: Fri Nov 24, 2023 6:42 pm
by mico
A mon avis, dans
mes statistiques il y a une inversion ou une erreur dans la mesure des kilomètres carrés
Re: Map of municipalities (France and Luxembourg)
Posted: Sat Nov 25, 2023 12:12 am
by aloxe
wow that was a nice one, in fact I was displaying the surface of the most populated and the less populated cities instead of largest and smallest. In your case you have the surface of Paris and Bonifacio.
This is wrong for all players but you are the first one where the results are not in the right order. Now this is fixed. (and the & in your name too…)
Re: Map of municipalities (France and Luxembourg)
Posted: Sun Nov 26, 2023 9:57 pm
by mico
aloxe wrote: ↑Sat Nov 25, 2023 12:12 am
Now this is fixed. (and the
& in your name too…)
merci aloxe
Re: Map of municipalities (France and Luxembourg)
Posted: Mon Nov 27, 2023 8:51 am
by aloxe
I made a few other fixes over the week=end:
- translation are now manageable in blocks
- manual adding of municipalities to unknown location were not reccording any more, I fixed it.
Re: Map of municipalities (France and Luxembourg)
Posted: Tue Nov 28, 2023 7:55 am
by aloxe
oups… placeholder
Re: Map of municipalities (France and Luxembourg)
Posted: Tue Nov 28, 2023 11:12 am
by Burdie
I can`t find my extra district. I think maybee a bug.
My stats say that I have 17 France Districts.
In Tour de France and on the map shows me 16 districts.
EBT gives me also only 16 departments.
I don't see any strange postcode
I see the Tour de France list gives me one region with no district
Île-de-France (0/8) :
75 77 78 91 92 93 94 95
maybee it had something to do with that
Re: Map of municipalities (France and Luxembourg)
Posted: Thu Nov 30, 2023 3:18 pm
by aloxe
well Burdie this is a problem
let's find this district in the system
so I can view
null his value
I need to know where it comes from
Re: Map of municipalities (France and Luxembourg)
Posted: Thu Nov 30, 2023 9:42 pm
by aloxe
That was an interesting one…
You had an extra département (district) "null" because the system didn't find it for one of your locations. This is one of the two
unknown locations that didn't match a known commune.
To fix it I decided to only count départements from the known municipalities because I am sure knwn municipalities have a département identified by the public databases. This fixes the problem, you now count 16 districts as it should.
Nevertheless I wanted to understand why your location of
50110 Cherbourg was not identified as the municipality of
Cherbourg-en-Cotentin. When the postcode is good and there is a partial name match, the system should spot it. It should have been spotted. You recorded
Cherbourg with two different postcodes and in that case I call the
eurobilltracker API to know about the other postcodes (important if this place has an homonym that you also visited). For some reason, the API didn't return the postcodes:

- Screenshot 2023-11-30 at 20.57.25.png (144.43 KiB) Viewed 5860 times
For the place of
Cherbourg-en-Cotentin where you also used the two postcodes of the city, you get them as expected.

- Screenshot 2023-11-30 at 20.57.36.png (180.58 KiB) Viewed 5860 times
So now I handle cases where the API doesn't return the right answer and I also made a better way to match location partial names. Long story short, your incident made me handle cases that I didn't think could happen so you contributed to a more solid software. Thanks.
Oh and yes, I saw CO.LIMERICK as one of the postcode you registered, that may explain my previous answer

Re: Map of municipalities (France and Luxembourg)
Posted: Sat Dec 02, 2023 4:01 pm
by aloxe
And I forgot to mention, in
https://framadate.org/bxwUdktjGEW5wTG6 you chose to add to possibility to share your result in the forum. This is now the case on
https://ebt.fr.eu.org/en/. You may get back to
https://framadate.org/bxwUdktjGEW5wTG6 to chose the next feature you want added.
Re: Map of municipalities (France and Luxembourg)
Posted: Mon Dec 04, 2023 11:27 am
by Burdie
I hope it is easier to solve than my previous bug.
If you look at Kleman's tour the france, you see that he has 'Corse' but on the map it is not coulored blue
Re: Map of municipalities (France and Luxembourg)
Posted: Mon Dec 04, 2023 8:55 pm
by avij
I believe the API is working properly. Burdie has notes entered from Cherbourg-en-Cotentin (50100) and Cherbourg-en-Cotentin (50110), but none from Cherbourg (any postal code). Therefore queries for Burdie's postal codes for Cherbourg will return empty, and queries for Burdie's postal codes for Cherbourg-en-Cotentin will return 50100 and 50110.
Re: Map of municipalities (France and Luxembourg)
Posted: Mon Dec 04, 2023 10:46 pm
by aloxe
avij wrote: ↑Mon Dec 04, 2023 8:55 pm
I believe the API is working properly. Burdie has notes entered from Cherbourg-en-Cotentin (50100) and Cherbourg-en-Cotentin (50110), but none from Cherbourg (any postal code). Therefore queries for Burdie's postal codes for Cherbourg will return empty, and queries for Burdie's postal codes for Cherbourg-en-Cotentin will return 50100 and 50110.
I assume Burdie has also notes recorded in Cherbourg (both 50100 and 50110) because the request of his cities returns Cherbourg with the following object:
Code: Select all
{"city":"Cherbourg","country":"France","top_zipcode":"50110","nrlocations":2}
This is why I expect the empty array to contain 2 postcodes. And yes there is also a
Code: Select all
{"city":"Cherbourg-en-Cotentin","country":"France","top_zipcode":"50100","nrlocations":2}