dieghernan / nominatimlite

Lite interface for getting data from OSM geocoder service.
https://dieghernan.github.io/nominatimlite/
Other
18 stars 2 forks source link

Long OSM IDs cause integer issue and NA. #47

Closed lshydro closed 3 months ago

lshydro commented 3 months ago

The function geo_address_lookup results in NAs introduced by coercion to integer range due to exceeding the R internal integer limit .Machine$integer.max = 2147483647. This problem originates in the step osm_ids <- as.integer(osm_ids). Reproducible example: geo_address_lookup(osm_ids = c(9743343761), type = "N", full_results = T) My current workaround is to just skip the as.integer(osm_ids) step, though this it only work if I know for sure the input are numeric.

dieghernan commented 3 months ago

Thanks @lshydro for reporting and investigating. It should be closed in the dev version after merging #48