- Update documentation.
- Fix input validation in
geo_address_lookup()
andgeo_address_lookup_sf()
that crashes the function if the OSM ID is too long (#47 reported by @lshydro).
-
New functions:
geo_lite_struct()
andgeo_lite_struct_sf()
for performing structured queries.- Bring back
geo_amenity()
andgeo_amenity_sf()
as a wrapper ofgeo_lite_struct()
/geo_lite_struct_sf()
, so now are more robust and compatible with sf objects.
-
Improve unnesting of fields when requiring
extratags
, i.e.custom_query = list(extratags = TRUE)
. -
It is possible to use nominatimlite with local server thanks to the new argument
nominatim_server
(#42 @alexwhitedatamine). -
Adapt endpoints to Nominatim v4.4.0
[Python-only]
. -
nominatimlite::osm_amenities
data set re-introduced, updated and with additional description fields. -
API call for non-spatial function uses now JSONV2 format (
&format=jsonv2
). This implies the following changes in the output:class
renamed tocategory
.- additional field
place_rank
with the search rank of the object.
-
custom_query
argument can use vectors andlogical
:geo_lite(address = "New York", custom_query = list(addressdetails = TRUE, viewbox = c(-60, -20, 60, 20)) )
- Add a
progressbar
parameter togeo_lite()
,geo_lite_sf()
,reverse_geo_lite()
andreverse_geo_lite_sf()
to display progress in the console.
geo_amenity()
andgeo_amenity_sf()
, see Nominatim/issues/1311. Usearcgeocoder::arc_geo_categories()
as an alternative.nominatimlite::osm_amenities
data set deleted.
- Remove osmdata from Suggests.
- Fix examples.
- rlang and tibble are not explicitly required. Conversions to tibble
happens with
dplyr::tibble()
. - The data attributes of sf objects are returned now as
tibble
, for easy printing in console. - Improvements in code and tests.
- Now sf objects can handle correctly nested fields provided in the json response (for example, the nested address field provided by the API). This is consistent also with the results provided by the non-spatial functions, were unnesting was already handled correctly.
- Improvements on the output of
reverse_geo_lite()
andreverse_geo_lite_sf()
when the API returns nested lists.
- Improve results when there is no response of the API.
- Avoid de-duplication on results.
- Fix issues with
geo_amenity()
andgeo_amenity_sf()
.
- Skip API query tests on CRAN to avoid false positives.
- Centralize API queries on (internal) function
api_call()
. - Queries fully honors now the Nominatim Usage Policy. Queries may be slower now.
- New internal:
nominatim_check_access()
. - Adapt tests to testthat
v3.1.0
.
- Adapt tests to CRAN checks.
- CRAN release.
- Adjust query rate limits to Nominatim policy.
- New
strict
argument ongeo_amenity()
andgeo_amenity_sf()
. - Parameter
polygon
changed topoints_only
(#8) thanks to @jlacko. - Package now falls gracefully if url not reachable.
- Initial version of the package