nominatim icon indicating copy to clipboard operation
nominatim copied to clipboard

Package returns data.frames of the incorrect number of rows

Open kendonB opened this issue 9 years ago • 2 comments

Looks like when the search fails it returns a data.frame with 0 rows and rbinds the results, resulting in a data.frame that has fewer rows that the inputs. I'd recommend changing this so the function yields a data.frame with a single row of NAs (and the same names).

kendonB avatar Jul 21 '16 16:07 kendonB

Thx for the bug report! Can you incl a short snippet that I can use for testing? Seems like a very reasonable mod.

hrbrmstr avatar Jul 21 '16 16:07 hrbrmstr

nominatim::osm_geocode(c("1600 Pennsylvania Avenue Northwest, Washington, DC", "The moon"), 
                       key = "yourkey")

kendonB avatar Jul 21 '16 16:07 kendonB