Opened 13 years ago
Last modified 7 years ago
#1456 new defect
Tiger Geocoder can't handle SH for state highway
Reported by: | arencambre | Owned by: | robe |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS Fund Me |
Component: | tiger geocoder | Version: | master |
Keywords: | Cc: | aren@…, woodbri |
Description
Tiger Geocoder gives no results for either of these queries:
SELECT ST_AsEWKT(geomout) FROM geocode_intersection('SH 121', 'Denton Tap', 'TX', 'Coppell') ORDER BY rating ASC LIMIT 1; SELECT ST_AsEWKT(geomout) FROM geocode_intersection('SH121', 'Denton Tap', 'TX', 'Coppell') ORDER BY rating ASC LIMIT 1;
I can get it to work by converting to this:
SELECT ST_AsEWKT(geomout) FROM geocode_intersection('State Highway 121', 'Denton Tap', 'TX', 'Coppell') ORDER BY rating ASC LIMIT 1;
The problem is, in the Tiger database, the highway is known as State Highway 121, but the geocoder doesn't understand that SH is a common abbreviation for State Highway. See http://trac.osgeo.org/postgis/attachment/ticket/1392/intersection.png.
Change History (11)
comment:1 by , 13 years ago
comment:2 by , 13 years ago
Aren,
I forget if we handle the state abbreviation case or not. As for as street types go, if you look in the tiger.street_type_lookup, all the ones with is_hw are the ones it treats as highway prefixes and you are right I don't see SH in there.
Try adding it to that table and see if it fixes your issue and if it does I'll add it if it doesn't cause any issue elsewhere.
comment:3 by , 13 years ago
OK, this worked for SH 121:
- SH in name column
- State Hwy in abbrev column
- TRUE (per pgAdmin III) in is_hw column
However, SH121 (without the space) still doesn't work, although if I check that on Google Maps (link), it finds it but recommends SH 121 (with the space).
comment:4 by , 13 years ago
Milestone: | PostGIS 2.0.0 → PostGIS 2.1.0 |
---|
comment:5 by , 13 years ago
Milestone: | PostGIS 2.1.0 → PostGIS 2.0.1 |
---|
comment:6 by , 13 years ago
Milestone: | PostGIS 2.0.1 → PostGIS 2.1.0 |
---|
I think this is now just the same issue as the I- 95 verses I-95 we have listed in another ticket.
comment:7 by , 12 years ago
Cc: | added |
---|
comment:8 by , 12 years ago
Component: | tiger geocoder → pagc_address_parser |
---|
comment:9 by , 12 years ago
Component: | pagc_address_parser → tiger geocoder |
---|---|
Milestone: | PostGIS 2.1.0 → PostGIS 2.2.0 |
I haven't tested if this is an issue with pagc or not but won't have time to before release probably and might be more of an issue with handling variations in core geocoder itself. So moving back to tiger geocoder core.
comment:10 by , 9 years ago
Milestone: | PostGIS 2.2.0 → PostGIS Future |
---|
Does the geocoder understand other common abbreviations? E.g., TX is also commonly used as an abbreviation for state highways in Texas. E.g., TX 121.