[Geocoding] [OpenStreetMap] #4519: Reverse geocoding gives city of nearest object, not city of current position

OpenStreetMap trac at openstreetmap.org
Tue Aug 14 22:49:09 BST 2012


#4519: Reverse geocoding gives city of nearest object, not city of current
position
-------------------------------+--------------------------------------------
 Reporter:  AlphaTiger         |       Owner:  geocoding@…                
     Type:  defect             |      Status:  new                        
 Priority:  major              |   Milestone:                             
Component:  nominatim          |     Version:                             
 Keywords:  reverse geocoding  |  
-------------------------------+--------------------------------------------

Comment(by cquest):

 Replying to [comment:3 lonvia]:
 > Replying to [comment:2 cquest]:
 > > The problem lies in using only ST_Distance to order the result.
 >
 > Sorry but it is not as simple as that because currently there are no
 distances to any address objects calculated. Doing so would add a pretty
 heavy performance penalty and is simply not worth the trouble.

 Well, the code at
 https://trac.openstreetmap.org/browser/applications/utils/nominatim/website/reverse.php
 shows an "ORDER BY ST_Distance" at line 102... so distance is already
 calculated or I'm not looking at the right code.

-- 
Ticket URL: <https://trac.openstreetmap.org/ticket/4519#comment:4>
OpenStreetMap <http://www.openstreetmap.org/>
OpenStreetMap is a free editable map of the whole world



More information about the Geocoding mailing list