jmaspons / osmapiR

An R interface to OpenStreetMap API for fetching and saving data from/to the OpenStreetMap database
https://jmaspons.github.io/osmapiR/
GNU General Public License v3.0
5 stars 3 forks source link

Avoid HTTP ERROR 414: URI Too Long in osm_fetch_objects() by calls in batches #20

Closed jmaspons closed 1 month ago

jmaspons commented 1 month ago

Maximize batch size to URIs <= 8213 characters as documented in the wiki

Tests work when running interactively but fail in R CMD check:

Error in `stop_request(req)`: An unexpected request was made:
GET https://master.apis.dev.openstreetmap.org/api/0.6/relations?relations=...

Expected mock file: osm.org/api/0.6/relations-13eee2.*

FIX #19