codeforamerica / schoolselection

Rails app that displays public school information for parents
http://discoverbps.org/schools?utf8=%E2%9C%93&view=list&address=23+marlborough+st&zipcode=02117&grade_level=K0&sibling_school=&commit=Search
17 stars 15 forks source link

Address suggestion engine returns invalid addresses #2

Open YenTheFirst opened 12 years ago

YenTheFirst commented 12 years ago

when given the search input "647 E 3rd"/"02127", the user is redirected to an address matching page.

this page suggests, among other entries, "647 E 3 Rd St, 02127". However, clicking on this link just redirects again to the address matching page.

I think the problem is that it's matching "3rd" as "3 Rd". changing the generated url from "http://www.discoverbps.org/schools?address=647+E+3+Rd+St&grade_level=K0&sibling_school=&zipcode=02127" to "http://www.discoverbps.org/schools?address=647+E+3Rd+St&grade_level=K0&sibling_school=&zipcode=02127"

fixes the problem and allows results to be listed.