from graphserver.ext.osm.osmdb import OSMDB

class OSMReverseGeocoder:
    def __init__(self, osmdb_filename):
        self.osmdb = OSMDB( osmdb_filename )
        
    def __call__(self, lat, lon):
        nearby_vertex = list(self.osmdb.nearest_node(lat, lon))
        return "osm-%s"%(nearby_vertex[0])
        
    def bounds(self):
        """return tuple representing bounding box of reverse geocoder with form (left, bottom, right, top)"""
        
        return self.osmdb.bounds()
ebdcbaa71c565b7e14f93984c55be5bd35c5f7ca
<mask token>


class OSMReverseGeocoder:
    <mask token>

    def __call__(self, lat, lon):
        nearby_vertex = list(self.osmdb.nearest_node(lat, lon))
        return 'osm-%s' % nearby_vertex[0]
    <mask token>

<mask token>


class OSMReverseGeocoder:
    <mask token>

    def __call__(self, lat, lon):
        nearby_vertex = list(self.osmdb.nearest_node(lat, lon))
        return 'osm-%s' % nearby_vertex[0]

    def bounds(self):
        """return tuple representing bounding box of reverse geocoder with form (left, bottom, right, top)"""
        return self.osmdb.bounds()

<mask token>


class OSMReverseGeocoder:

    def __init__(self, osmdb_filename):
        self.osmdb = OSMDB(osmdb_filename)

    def __call__(self, lat, lon):
        nearby_vertex = list(self.osmdb.nearest_node(lat, lon))
        return 'osm-%s' % nearby_vertex[0]

    def bounds(self):
        """return tuple representing bounding box of reverse geocoder with form (left, bottom, right, top)"""
        return self.osmdb.bounds()

from graphserver.ext.osm.osmdb import OSMDB


class OSMReverseGeocoder:

    def __init__(self, osmdb_filename):
        self.osmdb = OSMDB(osmdb_filename)

    def __call__(self, lat, lon):
        nearby_vertex = list(self.osmdb.nearest_node(lat, lon))
        return 'osm-%s' % nearby_vertex[0]

    def bounds(self):
        """return tuple representing bounding box of reverse geocoder with form (left, bottom, right, top)"""
        return self.osmdb.bounds()

from graphserver.ext.osm.osmdb import OSMDB

class OSMReverseGeocoder:
    def __init__(self, osmdb_filename):
        self.osmdb = OSMDB( osmdb_filename )
        
    def __call__(self, lat, lon):
        nearby_vertex = list(self.osmdb.nearest_node(lat, lon))
        return "osm-%s"%(nearby_vertex[0])
        
    def bounds(self):
        """return tuple representing bounding box of reverse geocoder with form (left, bottom, right, top)"""
        
        return self.osmdb.bounds()