[postgis-devel] [PostGIS] #1856: reverse geocoder rating setting for prefer numbered highway name
PostGIS
trac at osgeo.org
Thu Jun 7 21:23:41 PDT 2012
#1856: reverse geocoder rating setting for prefer numbered highway name
-----------------------------+----------------------------------------------
Reporter: robe | Owner: robe
Type: enhancement | Status: closed
Priority: medium | Milestone: PostGIS 2.1.0
Component: tiger geocoder | Version: trunk
Resolution: fixed | Keywords:
-----------------------------+----------------------------------------------
Changes (by robe):
* status: new => closed
* resolution: => fixed
Comment:
completed at r9861.
To prefer numbered name you would do
{{{
SELECT set_geocode_setting('reverse_geocode_numbered_roads', '1');
SELECT pprint_addy((reverse_geocode('POINT(-71.355863
42.602466)'::geometry)).addy[1])
}}}
Gives output of:
{{{
I- 495, Chelmsford, MA 01824
}}}
To prefer local name
{{{
SELECT set_geocode_setting('reverse_geocode_numbered_roads', '2');
SELECT pprint_addy((reverse_geocode('POINT(-71.355863
42.602466)'::geometry)).addy[1])
}}}
Example:
{{{
SELECT pprint_addy((reverse_geocode('POINT(-71.355863
42.602466)'::geometry)).addy[1]);
}}}
{{{
Hwy Blue Star Memorial, Chelmsford, MA 01824
}}}
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/1856#comment:1>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-devel
mailing list