petewarden / dstk

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

Virtual machine server error on missing bounds #55

Open JustgeekDE opened 9 years ago

JustgeekDE commented 9 years ago

Reproducing the error Using the vagrant image from http://where.jetpac.com.s3.amazonaws.com/dstk_0.51.box, request the location for 'punta' http://localhost:8080/maps/api/geocode/json?address=punta&language=en&sensor=false, this will result in an internal server error.

Analysis The issue seems to lie in 'emulategoogle.rb', line 312. Checking if bounds is not nil, provides at least a temporary fix for the issue.


Edit: The location 'punta del hidalgo' (http://localhost:8080/maps/api/geocode/json?address=punta+del+hidalgo&language=en&sensor=false) seems to result in a couple of null pointer exceptions.