Closed FabienD74 closed 1 month ago
Ah...you mean to make the radius more precise ... I did not spend much time on that I agree...thanks for the suggestion, now it needs time, will keep it open till I have :)
En + ... mon code n'est pas au top, j'ai commencé et ajouté et ajouté sans revoir mes changements
Well in the mean time we check if stops are in a "square area" , then we could fine tune to make sure it in within the specified distance in meters... First things first...
PS: I went into this because i had to increase distance aver 1000 meters ( and change the code) to find the bus stop close to me.....
I'll check that afterward using googe map.... because i would like to sort "stops" around me by distance.... => new attributes for sensors i guess.... :-)
:-) Regards Fabien
This is how I came to the conversion...used google maps and distance :) ... for my stops it was OK but I admit not having checked this in detail. I started with my location, then calculated the distance and then I came to the factor...and it is sort-of OK for a radius...all in all I was not sure how important this had to be
We will have to make some shortcuts here and there...
La terre c'est 40.000 Km pour 360 degrés... 1km = 360/40.000 degrés 1m = 360/(40.000.000) degrés. ... oups pas grand chose quoi... à vérifier ...
And.... you do have to verify if your provider has put the right lat/lon for the stops ... I am in the 06 where anything can happen...and so it does, a.o. my son uses a bus stop that does not show up anywhere LOL
< joke on > J'sais pas ce qui peut se passer dans le 06, .... tu as Vladimir qui change les coordonées GSP ???? LOL ;-) ;-); < Joke off >
Pas besoin des étrangers de plus (comme moi) pour faire des bétises
Closing as added different calc as per your suggestion
we can simplify the SQL like this
using this: