Closed DJTommek closed 4 years ago
If there is used id=??? as integer in link from MapyCz, that is probably some place ID which might be in different location than different than x=xxx and y=yyy which refers to position of map. For example, in this case, location of ID is the same as coordinates: https://en.mapy.cz/zakladni?x=16.1559058&y=50.5331523&z=17&source=base&id=2258106 -> 50.533152,16.155906 But in this case coordinates are little bit off as user in browser moved map a little bit so result location is somewhere else: https://en.mapy.cz/zakladni?x=16.1493719&y=50.5321566&z=17&source=base&id=2258106 -> 50.532157,16.149372 If you are sending location to some point, that is not place, there are coordinates in id=yy,xx which is correctly processed even if map itself is little bit off as previous link: https://en.mapy.cz/zakladni?x=16.1549563&y=50.5331455&z=18&source=coor&id=16.155578570500182%2C50.53311479225323 -> 50.533115,16.155579
id=???
x=xxx
y=yyy
50.533152,16.155906
50.532157,16.149372
id=yy,xx
50.533115,16.155579
Options:
id=??
Created issue #4 for rewriting to PHP to remove this workaround.
If there is used
id=???
as integer in link from MapyCz, that is probably some place ID which might be in different location than different thanx=xxx
andy=yyy
which refers to position of map. For example, in this case, location of ID is the same as coordinates: https://en.mapy.cz/zakladni?x=16.1559058&y=50.5331523&z=17&source=base&id=2258106 ->50.533152,16.155906
But in this case coordinates are little bit off as user in browser moved map a little bit so result location is somewhere else: https://en.mapy.cz/zakladni?x=16.1493719&y=50.5321566&z=17&source=base&id=2258106 ->50.532157,16.149372
If you are sending location to some point, that is not place, there are coordinates inid=yy,xx
which is correctly processed even if map itself is little bit off as previous link: https://en.mapy.cz/zakladni?x=16.1549563&y=50.5331455&z=18&source=coor&id=16.155578570500182%2C50.53311479225323 ->50.533115,16.155579
Options:
id=??
is available and it's not coordinates (temporary solution of course)