2009/3/27 Eddy Petrișor <[email protected]>: > 2009/3/27 <[email protected]>: >> * Is there a way to use is_in or other hints to make this more accurate? > > how about extending the bounding box to > > Xdelta = max (DEFAULT_*_SIZE, max(abs (Cx - Pix) | for every i node)) > Ydelta = max (DEFAULT_*_SIZE, max(abs (Cy - Piy) | for every i node)) > > Where: > - (Cx, Cy) is the origin of the place and > - (Pnx, Pny) is the position of n-th node that contains place's name > in the is_in > value*.
Note that you should consider every node of each way that has contains place's name in is_in. Considering only the ends of the way is not correct since for a curved way the nodes in the middle might be more outwards than the ends. > * note that is_in contains frequently values such as: > "CityName;CountyName;Country", "CityName; CountyName; Country" > "CityName,CountyName,Country", "CityName, CountyName, Country" > -- > Regards, > EddyP > ============================================= > "Imagination is more important than knowledge" A.Einstein > -- Regards, EddyP ============================================= "Imagination is more important than knowledge" A.Einstein _______________________________________________ Routing mailing list [email protected] http://lists.openstreetmap.org/listinfo/routing
