17 ms·
Using FOIA Data and Unix to halve major source of parking tickets
- rootsudo 8y agoAlternatively, if you're a parking meter in Chicago, you now now how to meet quota and can full in the rest of your day with meaningful things.
- tptacek 8y agoMatt's schtick is automated, large-scale FOIA requesting; he obtains huge collections of data from cities and then tries to do interesting stuff with it. Here, he apparently managed to get all the tickets in Chicago for several years running, and then used that data to fix the parking signs. This, to me, is so neat.
- kasey_junk 8y agoHe also spends a lot of time corresponding the old fashioned way to get the data & cleaning it for mechanical evaluation. His hobbies make me feel bad about my own...
- toomuchtodo 8y agoYou could have these hobbies!
- acct1771 8y agoI'm kind of on a negative streak these days, so forgive me, reader, but...why in god's green earth aren't these the government's hobbies?!
- toomuchtodo 8y agoYou’re not wrong, not in the slightest. The benefit is the system allows concerned citizens to step in to make improvements at very little cost. Democracy requires constant vigilance in many forms. This is one such form. Matt, we salute you and your efforts! I hope this encourages others to get involved in improving their local government (and perhaps even creates reusable tooling for use at scale [“citizen oversight as code”]).
- __jal 8y agoBecause different people have different priorities. Remember, you're part of the government.
- stavrianos 8y ago> Remember, you're part of the government. This is a really important idea, and I don't think I've seen it expressed so clearly before. Thank you.
- paxy 8y agoBecause it goes completely against the interests of local governments. You will be amazed to see how large a portion of your city and police department's budgets are from fines.
- actuallyalys 8y agoThat's true of some fines in some places, but to be clear, it's not really true of parking fines in Chicago. The graph in the article indicates there's about $1 million dollars in tickets issued each year. That's around $ .30 per resident and less than one percent of the billions in revenue the city takes in each year (https://www.cityofchicago.org/content/dam/city/depts/obm/supp_info/2018Budget/2018_Budget_Overview.pdf https://www.cityofchicago.org/content/dam/city/depts/obm/sup..., see page 23 in particular) I did notice that fines in general amount to $300 million a year, so other fines might well be inflated.
- sjburt 8y agoI believe the y-axis on that graph (assuming you refer to the last graph) is the number of parking tickets, not the dollar amount of fines. So more like $50 to $100 million in parking fines per year.
- actuallyalys 8y agoYou're absolutely right. The graph could have been clearer, but I should have double-checked my assumptions and that $.30 per resident figure should have been a red flag. I apologize for that basic error. Looking into this more, it sounds like, while there probably is a perverse incentive because more tickets equals a significant increase in revenue, the biggest problem is the punitive fines for minor non-traffic offenses that tend to compound for poorer residents: https://www.motherjones.com/crime-justice/2018/02/how-does-chicago-make-200-million-a-year-on-parking-tickets-by-bankrupting-thousands-of-drivers/ https://www.motherjones.com/crime-justice/2018/02/how-does-c.... Note the headline is a little misleading, they seem to mean "non-moving violations".
- forgotmypw 8y agoThis one change cost the government 60K. If changes like this are implemented all over the city, how will they pay for the IBM contract?
- Fjolsvith 8y agoCivil forfeiture?
- nerdponx 8y agoHeaven forbid that bidding be competitive and that contractors be held accountable.
- actuallyalys 8y agoThat's nothing at the scale of Chicago. Their seven-cent tax on plastic bags is expected to bring in $9 million dollars this year (http://www.chicagotribune.com/business/ct-chicago-bag-tax-use-declined-0808-biz-20170807-story.html http://www.chicagotribune.com/business/ct-chicago-bag-tax-us...).
- SahAssar 8y agoPerhaps they wouldn't need such an expensive contract if they didn't have to process so many tickets caused by bad signage?
- taneq 8y agoBecause it's nigh impossible to get someone to understand something (much less actively do large amounts of work to fix it) when their income (or department budget) depends on them not understanding it.
- xbryanx 8y agoWhen is...dear educated technologists...the last time you even slightly considered working for city government? Alas, our best and brightest aren't serving the people. They toil at advertising.
- mLuby 8y agoThis is something the public can control. Make government positions competitive with corporate ones and you'll get a bunch more talented (and patriotic) "educated technologists" working in government. Likewise with teachers. It's not difficult, just costly.
- garmaine 8y agoNot just competitive, but better paying. Take Taiwan and other East Asian countries—government service is desirable, high paying, and a really prestigious job. And lo and behold, their government services really do work very well.
- dmix 8y agoThis is why I'm fiscally conservative while also believing public servants should make market rates. Which also means pushing back against obsessing about total employment counts at x rate but rather focusing on the specific utility of individual agencies, policies, and projects. Sadly public salaries and jobs in general are low hanging fruit targeted by short-sighted political campaigns while all other gov spending tends to be a black hole with zero measurable ROI and countless professional public grant/gov money consumers well aware of the lack of measurable ROI and crony/who-you-know-in-gov nature of spending. Or worse the phony claims of adopting 'private industry' to side step accountability via public-private arrangements which feature none of the benefits of markets (true competition, state anointed monopolies, market dominance disconnected from value provided to consumers, etc). Most of which could be blanketly solved by hiring good people (the people who dispense and use the money) and not creating quid-pro-quo incentive systems by underpaying public servants.
- 8y ago
- thatjsguy 8y agoBecause the people who should be working hard to change government simply aren’t. In the US, city governments ARE “the people”. If you have a city council, start going to meetings. It’s a great way to see how your local government actually works (or doesn’t work), and you might even meet some interesting people in the process. Otherwise, run for local office or try to get on a board or a commission. It’s not sexy, but this stuff, especially things like transportation and zoning, have the most impact at the municipal level, and it’s remarkably easy to get involved.
- ddingus 8y agoTruth. My city has a thing called a target area. The idea being to spiff a region up, and rotate them to keep the city vital and livable overall. They send a facillitator, who gathers interested people. Some projects get identified and everyone does their part. The people in need of city resources or people get an introduction and help navigating things. Everyone else plays a role. Labor, outside (not city budget) fundraising, planning, feed the people, organizing, whatever. My group used it's few years well. Traffic flow changes, a small park made from abandoned property, refurbish the school play areas and equipment. It took a bit of time and some sweat, but not too much. And I can drive through today and see that net good. Some of the people I worked with did exactly what you just said, and for basic, make it better, reasons.
- ssdd 8y agoNice humor :)
- ddingus 8y agoRight? They could be. And having a beer or two with govt people will reveal these kinds of desires and ideas. I have had those chats in the past. Got involved in a legislative effort and was given a sort of insiders view, tour. What gets in the way, the number one thing, is money. Not lack of it so much as priorities and ripple effects. Fixing the signs is a net public good. The ripple effect might be revenue targets going down, and the priority being that revenue being made from inane parking tickets all make for a bit of a mess. The number two is people forgetting or ignoring who works for who and why. There are lots of little fiefdoms, all closely guarded. Barriers where there really should be collaboration. And on that note, collaboration can be expensive. Sure, we can step out of your way on this, but about that school levy...
- gadders 8y agoWhat, work to reduce their revenue?
- gnopgnip 8y agoThe government is a collection of people with the own motivations. It is more likely that people working in the government would use their time to further their own personal beliefs than to fix a problem that does not affect them
- bpchaps 8y agoThat's what I'm saying!
- onion2k 8y agoI realise you're being positive and helpful, but I don't think many people could actually have these hobbies. The technical side is within reach of most HN readers, but you also need to see the problem in the first place and understand that it's actually solvable. Most people would assume that any effort would be wasted as the authorities would prefer to keep their revenue generator, so they'd never go through with the project. It takes a pretty special and creative person to have the idea, do the work, and actually get results at the end.
- deleted 8y ago[deleted]
- danShumway 8y agoYou could practice and build the skills necessary to have these types of hobbies! Nothing this person is doing is magic, and to the extent that genetics or extensive background prep play a role you could still overcome that deficit enough to at least participate in the space, even if you weren't the most amazing, talented person in the world. It's not like making the world better by addressing weird problems is a particularly competitive field. I'll make a claim that literally every single skill being shown here is something that you personally could learn, and it probably wouldn't take you more than a couple of months to a year of regularly exercising your creative muscles to get to the point where you were doing something useful.
- Ntrails 8y agoOk, here's the thing. I like playing video games. I get a sense of enjoyment and fulfillment from an evening spent crushing my enemies on the field of battle via a surprise contingent of minotaurs. That's fine. It's good! I would not get that same enjoyment from doing what this person does, although I fully agree i could probably replicate his method. My hobbies reflect what I enjoy doing, as do those of most people. I can feel nominally "bad" that mine are so incredibly worthless comparatively but still know that I wouldn't get as much utility from doing the "better" thing?
- 8y ago
- gammateam 8y ago"I got burned by the CIA and now I'm stuck in the records office fulfilling FOIA requests for conspiracy hobbyists in Ohio!" a cautionary tale from a public servant
- bpchaps 8y agoSo many PDFs......
- bpchaps 8y agoHey! Thanks for posting this, and the kind words. Interesting note about getting data like this - Illinois FOIA allows a requester to submit a SQL as part of their request.. so long as they know the tables and columns within the database ;)
- lostapathy 8y agoDo you have any specific information about this or the relevant regulations? Perhaps we need a meta-site with best practices and how best to attack open records requests in general.
- bpchaps 8y agoYou should check out muckrock.com!
- mikestew 8y agoI’m rusty, can you remind me of the SQL statement to run against the master tables to give me the schema? :-)
- ir0nic 8y agoNow wouldn't it be funny if you got them to drop a table this way?
- arenaninja 8y agoWouldn't you assign readonly permissions to the account used to fulfill these requests?
- johndavidback 8y agoIdeally, but until someone asks for it the first time, they probably don't even have an account for the purpose. So, an irritated DBA who has myriad other backlog tasks probably runs it on a copy if smart, and production if lazy or in a hurry. Would not surprise me in the slightest if an important table was dropped in this way.
- ddingus 8y agoIt is neat. (Not all of my post came through) Great example of value being in data. One that ordinary people can connect the dots on and encourage.
- FrozenTuna 8y agoI had a buddy in college whose main hobby was sending foias. The amount of information he was able to collect on me and all of our friends since it was a public university was astounding. He wrote a little google map applet that matched the student base's names to their parent's homes. He only showed about 6 of us what he did and we were all horrified and amazed at the same time. I miss CpE college.
- deleted 8y ago[deleted]
- flaxton 8y ago404 error? (page not found)
- bpchaps 8y agoShould be better now. Let me know if it persists!
- ReverseCold 8y agoNope, still a Google 404 page.
- Rick-Butler 8y agoConsider putting the site behind Cloudflare or similar content cache provider maybe?
- kasey_junk 8y agoFor the record I have no problem seeing it.
- pygy_ 8y ago404 here. It loaded, initially, but some images were missing, and reloading the page gave me the error.
- drbwaa 8y agoI'm getting intermittent 404s as well. It'll probably be fine once this drops off the front page.
- acdha 8y agoI’m still getting a 404 but going to the top level index worked even though the URLs are the same.
- Sir_Cmpwn 8y agoMy email is in my profile, feel free to reach out if you want (free) reliable hosting for your blog.
- mehrdadn 8y agoThis is awesome. Question though: how is producing license plate data like this not a disallowed privacy invasion? It seems like you could totally track who's parking where and potentially do nasty stuff, if you know (say) someone well-off whom you don't like and who doesn't seem to mind getting tickets on a regular basis.
- deleted 8y ago[deleted]
- rlpb 8y agoCriminal proceedings are usually public in most countries. Where do parking tickets fall? Even if not technically criminal, some might, for the same underlying reasons, consider it acceptable for "someone well-off whom you don't like and who doesn't seem to mind getting tickets on a regular basis" to have this illegal behavior on the public record. "Don't want your name tarnished? Don't park illegally." [Edit: on the other hand, if the ticket is unfair (eg. confusing signage as in this example), then you have a valid point; I just wanted to point out the other side of the coin]
- ghaff 8y agoWhat you say is true. It's also the case that there's a lot of information that is nominally public--often for very defensible reasons--which historically took significant effort to get at and, even then, only in a very limited and manual way. Today, a lot of that information is at least a lot more accessible to everyone (though in this case it still took a lot of work) and, furthermore, it can be mashed up with other public or semi-public data. I'm pretty sure this is something we'll be collectively be coming to terms with for a long time.
- snuxoll 8y agoVoter registration records being a perfect example - anyone can look up my address because the state makes it incredibly easy to pop my name into a website and there it is.
- btrettel 8y agoWould be nice to use the same skills to help reduce cars illegally parked in the bike lane. Identify areas which cyclists commonly complain about that (e.g., to the city) and encourage them to put up better signs?
- jimmaswell 8y agoCould also signal the area is starved for parking, so the lane should be removed and bicyclists should just ride in the road for those stretches. Small inconvenience to the bicyclists who still get to use the road, big win for the drivers.
- thatjsguy 8y agoGood lord, just park and walk. Or use that bike lane. Cities have an overabundance of expensive parking [1], which does nothing but waste space and act as giant thermal batteries. Everyone loves complaining about traffic, but we don’t seem to have the political will to do something about it (namely: reduce our dependence on cars). Cities should work to reduce their dependence on cars, not increase it at the expense of cyclists and pedestrians, who are actually the life blood of cities (think about how many pedestrians stop into small business compared to drivers speeding by at 35 mi/h). [1] https://www.strongtowns.org/journal/more-evidence-that-we-have-too-much-parking https://www.strongtowns.org/journal/more-evidence-that-we-ha...
- jimmaswell 8y agoIn my area, there are places you have to "park and walk" to and places you can just drive to. Second category are the only ones that get my business.
- thatjsguy 8y agoDo you live in a city or a suburb?
- 8y ago
- throwawayjava 8y agoHow much did the FOIA request cost?
- bpchaps 8y agoIt was free. I've never had to pay for any information coming from an Illinois FOIA request.
- dannyw 8y agoHave you thought about distributing the data, for accessibility and reproducibility? As well as save the taxpayers a little bit of dough in case someone else wants to request the same data. edit: my bad, didn't see it at the end
- kingbirdy 8y agoThe dataset is linked to at the end of the article (http://freeourinfo.com/tickets/ http://freeourinfo.com/tickets/)
- deleted 8y ago[deleted]
- captain_perl 8y agoYou might want to try postal address lookup/verification software to fix the addresses.
- icelancer 8y agoThat's interesting. I've often had to pay small to medium-sized amounts - always reasonable, I might add - for the price of producing said information.
- bpchaps 8y agoYou can often request that the FOIA officer waive the fee so long as the public's interest outweighs the burden to collect and redact the info. That's almost certainly what happened with my IL requests.
- pasbesoin 8y agoReminds me of working with free-form, manual entry order detail information, in a former life. Hundreds of thousands of records a month. I ended up importing them into Excel(1) and then using... what was that called? An MS/Windows library that came with IE 5 and/or a few other things, that provided regex support (with a few quirks) that was accessible via VBA. The point was, I could programmatically mine it -- including regex pattern matching and replacement of and within cell contents -- while also having a flexible UI within which to find and handle one-off cases. When the one-off's demonstrated a repeating pattern, I could quickly iterate to add that to the programmatic mining logic. This included adding color cueing for items of particular interest, manual follow-up. Excel's sorting capabilities to bring potentially related instances into visually displayed groups. And the like. It ended up working quite well. I might have preferred something else to VBA, and I did use Perl and other stuff, elsewhere (something that also gave me both power and the flexibility to rapidly iterate). But the point is, with such data, I found it very useful to combine regex and rapid programmatic manipulation, together with a good visual interface (including visual cues, the ability to comment upon instances -- Excel cell-level comments -- etc.) and manual manipulation. As a final aside, the extensive set of Excel keyboard shortcuts greatly aided in rapidly and effectively navigating and massaging the imported data. -- 1. This was back when Excel had... I think it was a 64K (or a bit less) limit on the number of rows in a sheet. P.S. I tended to retain the originally imported data in its columns, and to produce my mining of it in other columns. That way, I could always and immediately see what I started with, for any particular record. (And, if things visually started to be "too many columns", well, Excel lets you hide a range of columns from the view. As one example of how its features really helped, on the visual front while doing this work.) I still had to learn and allow for some quirks Excel exhibited with respect to importing text data. That included making sure the cells/columns being imported into carried the correct/needed formatting designation before importing into them (usually, "Text").
- pasbesoin 8y agoI'm pretty sure what I was thinking of is Windows Scripting Host (WSH). At the time, I picked it up as a part of IE 5. https://en.wikipedia.org/wiki/Windows_Script_Host https://en.wikipedia.org/wiki/Windows_Script_Host
- amaccuish 8y ago$190 million?! What does the architecture consist of? A database, some forms and some integrations/api? I'm 90% sure they could have done that with free software and a good support contract with a UNIX provider for far less :/
- nevir 8y ago10 year support contract is certainly a good chunk of that
- yjftsjthsd-h 8y agoThe initial product could be free, and that would still be a decent price for 10 years of any real support.
- bpchaps 8y agoYep. Have a look at their hourly rates for systems support [1]. All of the entry level positions are above 80/hr. [1] https://imgur.com/a/ieJj5Po https://imgur.com/a/ieJj5Po
- morei 8y agoThis is the price that the vendor is charging, NOT what the person is getting paid. The vendor is covering insurance, holiday/sick leave et al, payroll taxes et al, rent, management, carrying the risk of the work going away, etc etc. It looks high, but it's not nearly as profitable as it seems for either the vendor or the employee.
- bpchaps 8y agoYep. you're right.One of the many reasons why I'm not in government contracting :)
- morei 8y agoThis is a very common reaction that shows a lack of experience in dealing with scale IT systems. You're correct that a simple DB with some forms would be cheap. But integration tends to be crazy expense. For this sort of system, other things that also need to be covered: 1. Billing integration. Including changes to billing codes, bill (fine) printing, testing. 2. Audit integration. Because whenever money is handled, audit follows. 3. Customer support integration. Including UI for customer service, training, testing. This is often a very complex item because customer service already have a zillion systems they have to use and their training requirements are ongoing and expensive, so they want you to integrate with their existing systems instead of giving them a brand new thing, and integrate with their existing training processes, etc etc. 4. Integrate with all those hand-held readers. inc vendor compliance, testing etc. 5. Contract management. You have a contract with the government and they'd like to know that you did what you claim you did. So there's teams of people to deal with on an ongoing basis. 6. Project management. There's more than one person working on this, and a lot of complex integration requiring changes in other systems => extensive project management. 7. Ongoing changes to requirements, often conflicting. All the integration points above are moving targets, so expect that they'll have to be re-done a few times both before and after launch. 8. Arse covering. You now have a large contract with the US Government. You will sued and they will get sued (typically by whomever didn't win the contract). Vast amounts of documentation covering _everything_, including documenting the process by which documents are written => tech writers galore, plus lawyers plus lawyers. Honestly, this is barely scratching the surface. I haven't even touched the (expensive) work before the contract is even signed. $190M doesn't go very far!
- mrfusion 8y agoIs anyone else bothered that they paid 190 million for a database and interface to it?
- icelancer 8y agoI see you are neglecting to mention the support contract that came with it, including its very likely absurd SLAs on response times.
- baud147258 8y agoSee that part of the discussion: https://news.ycombinator.com/item?id=17754670 https://news.ycombinator.com/item?id=17754670 There's a few good explanations there.
- floatrock 8y agoHe cost the city $60k in revenue by asking them to clear up confusing signage. That's some small-government activism I can get behind!
- jcims 8y agoGiven that many of the tickets were issued because this is a taxi stand, it's also possible that revenues increased for the taxi company in that area.
- NegativeK 8y agoMatt/bpchaps, have you shared the results with the aldermen? I'd love to hear about their reactions.
- bpchaps 8y agoKind of, but nothing super formal. I've contacted a few of the aldermen's offices, but never the aldermen themselves. Though, during last mayoral election, some of the mayoral candidates wanted to use parking tickets as part of their campaign, and through some connections I found my way into Bob Fioretti's campaign manager's office to discuss parking tickets, alongside an ex-candidate, Amara Enyia's campaign manager. They were super, super interested - Fioretti's CM calling the work "fucking golden". But.. they both went silent after that, despite Fioretti started using parking tickets as a major part of his campaign. Go figure. There's a lot more to that story - I'll end up write about sometime later :).
- ccleve 8y agoI know this intersection. It's at the corner of State and Division, in the heart of the Rush Street neighborhood. The likely reason there are many tickets there is that there are many bars there, and great crowds of people who have had a bit too much to drink. There are also great crowds of cops there every weekend. Without looking at the data, I'd expect that many of the tickets are getting written in the middle of the night, when people are too inebriated, or too distracted, to read signs carefully.
- gt_ 8y agoDid the bars close when the new signs went up? Coincidentally or otherwise?
- ccleve 8y agoThe new signs caused the rate of tickets at the spot to slow down, not stop. According to the charts, there are still 300 tickets per year being written at that one spot. That is huge. It's not a coincidence that that huge number of tickets is being written in a busy bar area.
- gt_ 8y agoWho said they stopped? You must have meant to reply to someone else.
- snappieT 8y agoToo inebriated to read a sign but safe enough to drive a metal box at high speeds? Not saying the signage was clear, but that is a very very weak excuse to not understand them.
- ccleve 8y agoExplanation != excuse.
- exikyut 8y agoWhat I'm most impressed about is that the author was able to include the FOIA data. I guess I just learned I half expected each person who wanted FOIA data to have to request it themselves, for their own personal use. In this case I can see reusing this for interesting reasons (the plates in the .txt.gz have not been removed), so...
- hpincket 8y agoThis is great! I often request records but have never come up with a great use case! Under Florida public record law, source code produced by state employees is, in very narrow circumstances, a non-exempt public record (the code can't process sensitive data, etc.). I'm considering a future endeavor where I periodically request the code to such projects until the I.T. department decides it's worth the effort to open source it. I like to think this is a step towards consolidating publicly funded code and reducing duplicate effort. Ahh, imagine making a pull request to your city's website! But I'm getting ahead of myself...
- nappy 8y agoInteresting - any idea what the other circumstance are? Is there a statute for this? Have you considered requesting some specific source code and publishing it yourself? Might make sense to start small here. I have a lot of experience in making public records requests and would be happy to help.
- donjh 8y agoThis is great. I wonder if using this data patterns could be found showing when and where tickets are written. Would be interesting to know when and how often certain areas are checked for illegal parking, if such a pattern exists.
- keshav_bansal 8y agoMy first Comment!!
- letsdiskuss 8y agonice <a herf "www.letsdiskuss.com"> Discussion Forum Hindi </a>
- sk_hazratali 8y agohttps://www.sherekhudahazratali.com/2018/08/hazrat-umar-farooq-azam-ki-shan.html https://www.sherekhudahazratali.com/2018/08/hazrat-umar-faro...
- vectorEQ 8y agovery interesting example of data analysis and it's practical implications. awsome blog post, and you won't hear me say that quickly. "This'll be my first blog post on the internet, ever. Hopefully it's interesting and accurate. Please point out any mistakes if you see any!" KEEP IT UP MATT! and data munging, not sure if it's a word, but it sounds nice :D
- Bobbleoxs 8y agoI too feel I couldn't pass the $190m cost in the first place. Granted, I can see where the cost ramps up as explained by @morei. Could someone explain whether this is for the 10-year contract or a license of some sort for each year? If it is annually, they got 17m tickets over 7 years so for 10 years, assuming they issue just over 19m tickets, that means each parking ticket needs to be at least $10 to cover the cost, even at $100 per ticket, IBM is banking on 10% share? That seems excessive to me but I never worked in government so could someone enlighten me on this? By any chance there's a conflict of interest for government to be willing to make improvement and cut down parking tickets or any other similar source of income? Or maybe that's what public audit is for?
- kioleanu 8y agoWow, great stuff! Did you give more thought into the address cleaning bit? Or does anyone have an idea how to go about transforming mangled addresses into coordinates? I have a problem that's been bothering me for months, similar to what you have here: people from an emergency service call-center are inputting the addresses of the emergencies. For emergencies that happen on the public domain, there is often not a specific address, but rather names of landmarks. Something like "Street StreetName / Opposite Train Station Y", which can be written like "st stName / opp tr st y" or some other infinite variations. I don't have any after-data to corroborate, but I do have previous instances where the operator inputted the same address better. If I can extract the correct landmarks, I think I can do a Google Places search for them, with a cleaned query, like "Store Amazon, Best Street, Ohio" to get coordinates that can fall into an acceptable area. PS: in the example you gave with Lake Shore Drive, I think you could easily correct the names with an algorithm based on the Levenshtein distance
- maxerickson 8y agoMaybe try https://github.com/openvenues/libpostal https://github.com/openvenues/libpostal It's a C library with gigabytes of data, so it isn't light weight, but it attacks the problem aggressively.
- bpchaps 8y agoI've put a LOT of thought into address cleaning! And yep - levenstein distance seems to be the way to go. My current stack is: 1. Send addresses to https://smartystreets.com/ https://smartystreets.com/ - They gave me a year's worth of unlimited geocoding for free. They also tokenize the addresses, but I had about a 50% success rate with them. 2. Tokenization raw addresses with https://github.com/datamade/usaddress https://github.com/datamade/usaddress. 3. Use a normalized levenstein distance algo to get ratio of difference. 4. Compare all of the addresses' levenstein distances with each other. 5. Apply logistical regression/gradient ascent algo to tickets by chaining heavilytypo'd addresses to less-typo'd and eventually to a static list of verified-correct addresses. It works surprisingly well, but there are still a lot of problems that can't easily be solved: 1. Street types (st/ave/blvd/etc) are missing. So, when two addresses have the same street name, it's difficult to pair the two. It's still possible with some probability stuffs and matching the ticketers' paths to the nearest street. 2. Addresses have a LOT of one-off situations. For example, there's a street name called "Avenue A". The street name here is "Avenue", and the street type (usually st/ave/etc) is "A". 3. Lots of four letter streets make levenstein distance very difficult. Glad you enjoyed it!
- ekr 8y agoOn the one hand, this is a really neat hack. On the other hand, given the current situation with cars, pollution in cities (air quality, noise-level etc), global warming, I would personally think twice before doing something that would make car driving easier and more pleasant, as that simply incentivizes more driving. (getting a ticket might be a small inconvenience, but it does contribute to creating a slight aversion to driving). Sure, this may seem a bit "evil", and the better solution is reducing negative externalities through taxing, which is a more transparent and ethical solution, but most of us don't have that level of power and influence within local councils and governments.
- fredley 8y agoAmerican cities are built for cars - there's no way around that issue. To navigate cities you need some sort of powered transportation vehicle, outside of a few just-about-pedestrian-navigable areas downtown. Don't punish cars, promote electric cars, scooters, bikes, and other ways of getting around. Dedicate more parking to electric-only spots (with chargers), bike racks and bike share docks, and scooter parks.
- punnerud 8y agoI’m thinking about a similar post. After a long run between different departments in Norway I got out all historic train delays and all form/e-mail contact with the rail company, including the number of people getting money back because of the delays. What interested me most in this article was mawk/AWK.
- Anthony-G 8y agoI really enjoyed this article – not only because of the content but the distraction-free layout makes it a pleasure to read. It’s rare that I come across a site using such minimal and effective graphic design. As a bonus, the site loads quickly and doesn’t rely on a stream of third-party JavaScript files or other web resources. For a first blog post, I’m impressed. If I ever get around to publishing my own blog, I know what to aim for. Keep up the good work. The web needs more of this! The footer indicates that the web page was generated using bashblog [1] – looks like it might be worth checking out. [1] https://github.com/cfenollosa/bashblog https://github.com/cfenollosa/bashblog
- lettergram 8y agoI did something similar for universities, to help students select their courses: https://easy-a.net/ https://easy-a.net/ I wrote a blog post about it, because it requires a ton of work to get FOIA requested data - this I'm assuming was done in the same painstaking way: https://austingwalters.com/foia-requesting-100-universities/ https://austingwalters.com/foia-requesting-100-universities/ I give this props. I'm sure it required a ton of work
- mxuribe 8y agoThis is awesome!
- jklein11 8y agoAre there any resources explaining the FOIA process? I'm not sure what types of information is available, what it can be used for, etc and am always amazed with the type of information people are able to get the government to hand over.
- lucb1e 8y agoI had this question as well and asked someone who did a FOIA request. There is no listing. It's just that, if you notice or can logically conclude that a certain kind of data exists, you can request it. In this example, it is fairly logical that the city has a record of parking tickets that were written out, and so the author requested them. I'm surprised he asked after license plates, though. I don't know if that is different in the USA, but in Europe that certainly wouldn't fly because of privacy. I wouldn't even have asked because I shouldn't want to have such data. Perhaps one could get an anonymized version to be able to correlate how often a certain plate got a ticket, but not which plate that was. Anyway, the general concept of a FOIA request is the same. (Edit: Oh, someone else remarked this as well: https://news.ycombinator.com/item?id=17754396 https://news.ycombinator.com/item?id=17754396)
- TheKarateKid 8y agoThis is great, but I can only imagine there being hidden pushback by government agencies if these requests to fix things became more common. Revenue from parking tickets is easy money for a violation that is generally harmless.
- chapium 8y agoHonestly I dont expect any pushback for nefarious reasons. Its just as easy to ignore a problem thats making the city money, rather than defend for it.
- jamisteven 8y agoThis is incredible, thanks for sharing.