Closed henare closed 9 years ago
OK, there's a few layers of fail here.
The address is geocoding to somewhere in the US, even with our region biasing: http://maps.googleapis.com/maps/api/geocode/json?region=AU&address=9%20WOODLYN%20COURT%20%28LOT%2014%29%20%20%20SOUTH%20HOBART%207004
Should we even be saving applications that fail geocoding like this? It doesn't help the citizen so I don't think so.
Furthermore, as far as I know, the scraping process shouldn't crash like this because any errors during saving an application should be caught and simply reported on.
I don't think we should silently throw away applications that fail to geocode properly. To me the more sane thing to do is to save them in the database without a valid lat long. That way we have the potential to backtrack and fix geocoding errors. Otherwise, it's just silently failing and disappearing which seems very bad to me.
Otherwise, it's just silently failing and disappearing which seems very bad to me.
We currently disappear applications for all sorts of reasons, like not having a description. What are your thoughts on that?
In any case, all I'm going to try and fix as part of this issue is:
Furthermore, as far as I know, the scraping process shouldn't crash like this because any errors during saving an application should be caught and simply reported on.
Not having a description is a more legitimate reason to disappear an application because it's pretty useless without a description and the problem is definitely going to originate at the scraper level. With a bad geocode it could be just that the google doesn't know about a new address yet, everything else about the application is correct, valid and useful. The geocoded information helps the system find the application that's interesting to you but it's not necessary for an application to be valid. For example, if I show you an application for "26 Freelander Avenue, Katoomba" then that's useful to you whether it's geocoded or not. Does that make anything clearer?
Yeah I see more where you're coming from. I was thinking because it's not geocoded you never see it because it doesn't get emailed out but I guess it would appear in search.