petewarden / dstk

A collection of the best open data sets and open-source tools for data science
http://www.datasciencetoolkit.org/
1.13k stars 186 forks source link

Google style geocoder yields incorrect results #32

Open gabrielflorit opened 11 years ago

gabrielflorit commented 11 years ago

example:

27 Saint Lukes RD Allston MA 02134 dstk places this at: 27 Sandy Way, Weymouth, MA

71 Rockdale ST Mattapan MA 02136 dstk: 71 Rockdale St, Braintree, MA

698 Eighth ST South Boston MA 03108 dstk: 198 Boston St, Manchester, NH

petewarden commented 11 years ago

Thanks for those examples Gabriel! I'll look at those and figure out what's going wrong.

gabrielflorit commented 11 years ago

The following might be useful to you.

I geocoded 1,000 addresses with both DSTK and Google, and calculated distance between both points. Here are the results where both DSTK and Google returned status as 'ROOFTOP', and the distance between both points is equal or greater than 1 km:

distance,   address
27.0,   27 Saint Lukes RD Allston MA 02134
10.2,   90 Cottage ST Roxbury MA 02119
9.3,   69 Saint James ST Roxbury MA 02119
8.6,   270 Huntington AV Boston MA 02114
7.4,   71 Rockdale ST Mattapan MA 02136
5.7,   37 Mercer ST South Boston MA 02124
5.0,   76 Shepton ST Dorchester MA 02121
4.4,   166 Norfolk AV Roxbury MA 02124
2.6,   179 Howard AV Dorchester MA 02124
2.1,   392 Seaver ST Dorchester MA 02124
2.0,   36 Mclellan ST Dorchester MA 02124
2.0,   17 Esmond ST Dorchester MA 02124
1.1,   47 Harrison Archways  Boston MA 02118
gabrielflorit commented 11 years ago

And here's the list of results filtered where DSTK status = 'ROOFTOP' (regardless of Google status), and distance is equal or greater than 1 km:

distance,address
85.7,698 Eighth ST South Boston MA 03108
27.0,27 Saint Lukes RD Allston MA 02134
10.2,90 Cottage ST Roxbury MA 02119
9.3,69 Saint James ST Roxbury MA 02119
8.6,270 Huntington AV Boston MA 02114
7.9,58 Medford ST Mattapan MA 02126
7.5,19 Msgr Reynolds WA Roxbury MA 02118
7.5,23 Msgr Reynolds WA Boston MA 02118
7.4,71 Rockdale ST Mattapan MA 02136
6.5,130 Blue Hill AV Dorchester MA 02125
6.0,75 Sierra RD Hyde Park MA 02131
5.7,37 Mercer ST South Boston MA 02124
5.0,76 Shepton ST Dorchester MA 02121
4.8,66 Carruth ST Dorchester MA 02125
4.4,166 Norfolk AV Roxbury MA 02124
4.0,265 Centre ST Jamaica Plain MA 02131
2.6,179 Howard AV Dorchester MA 02124
2.3,26 Highcrest TE Hyde Park MA 02136
2.1,4 Esmond ST Dorchester MA 02124
2.1,392 Seaver ST Dorchester MA 02124
2.1,71 Kingsdale ST Greater Mattapan MA 02124
2.0,36 Mclellan ST Dorchester MA 02124
2.0,17 Esmond ST Dorchester MA 02124
1.7,400 Massachusetts AV Roxbury MA 02119
1.5,11 Crown Point Dr DR Boston MA 02136
1.1,5 River Street TE Hyde Park MA 02136
1.1,8 Bowdoin PR Dorchester MA 02125
1.1,15 River Street TE Hyde Park MA 02136
1.1,1 River Street TE Hyde Park MA 02136
1.1,5 River Street TE Hyde Park MA 02136
1.1,15 River Street TE Hyde Park MA 02136
1.1,16 Wildwood ST Dorchesterave MA 02124
1.1,47 Harrison Archways  Boston MA 02118
1.1,5 River Street TE Hyde Park MA 02136
gabrielflorit commented 10 years ago

Hi Pete,

Is there anything I can do to help with this issue? I would love to be able to use the geocoder.

Gabriel