Skip to content

Commit

Permalink
reinstate mock files for #272
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Jun 3, 2022
1 parent c835c27 commit 7aaed34
Show file tree
Hide file tree
Showing 24 changed files with 3,179 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: osmdata
Title: Import 'OpenStreetMap' Data as Simple Features or Spatial Objects
Version: 0.1.9.026
Version: 0.1.9.027
Authors@R: c(
person("Mark", "Padgham", , "mark.padgham@email.com", role = c("aut", "cre")),
person("Bob", "Rudis", role = "aut"),
Expand Down
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"codeRepository": "https://github.com/ropensci/osmdata/",
"issueTracker": "https://github.com/ropensci/osmdata/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "0.1.9.026",
"version": "0.1.9.027",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down
191 changes: 191 additions & 0 deletions tests/testthat/mock_bb/nominatim/search-619814-POST.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,191 @@
[
{
"place_id": 194748,
"licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",
"osm_type": "node",
"osm_id": 34964314,
"boundingbox": [
"47.6381346",
"47.9581346",
"12.8864806",
"13.2064806"
],
"lat": "47.7981346",
"lon": "13.0464806",
"display_name": "Salzburg, 5020, Österreich",
"class": "place",
"type": "city",
"importance": 0.6854709096560191,
"icon": "nominatim/ui/mapicons/poi_place_city.p.20.png"
},
{
"place_id": 282390979,
"licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",
"osm_type": "relation",
"osm_id": 86538,
"boundingbox": [
"47.7512115",
"47.8543925",
"12.9856478",
"13.1272842"
],
"lat": "47.802827300000004",
"lon": "13.057954916198952",
"display_name": "Salzburg, 5020, Österreich",
"class": "boundary",
"type": "administrative",
"importance": 0.6854709096560191,
"icon": "nominatim/ui/mapicons/poi_boundary_administrative.p.20.png"
},
{
"place_id": 282183131,
"licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",
"osm_type": "relation",
"osm_id": 86539,
"boundingbox": [
"46.943858",
"48.0414691",
"12.0760956",
"13.996125"
],
"lat": "47.4166667",
"lon": "13.25",
"display_name": "Salzburg, Österreich",
"class": "boundary",
"type": "administrative",
"importance": 0.6714282515201715,
"icon": "nominatim/ui/mapicons/poi_boundary_administrative.p.20.png"
},
{
"place_id": 282230078,
"licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",
"osm_type": "relation",
"osm_id": 533262,
"boundingbox": [
"50.6552878",
"50.6715229",
"8.0240696",
"8.0587314"
],
"lat": "50.6667428",
"lon": "8.0474914",
"display_name": "Salzburg, Rennerod, Westerwaldkreis, Rheinland-Pfalz, Deutschland",
"class": "boundary",
"type": "administrative",
"importance": 0.5799235624180024,
"icon": "nominatim/ui/mapicons/poi_boundary_administrative.p.20.png"
},
{
"place_id": 282173716,
"licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",
"osm_type": "relation",
"osm_id": 114907,
"boundingbox": [
"48.8037039",
"48.8364496",
"6.4566055",
"6.5287811"
],
"lat": "48.8230783",
"lon": "6.5113122",
"display_name": "Château-Salins, Sarrebourg-Château-Salins, Moselle, Grand Est, France métropolitaine, 57170, France",
"class": "boundary",
"type": "administrative",
"importance": 0.551945755236079,
"icon": "nominatim/ui/mapicons/poi_boundary_administrative.p.20.png"
},
{
"place_id": 283153718,
"licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",
"osm_type": "relation",
"osm_id": 10514255,
"boundingbox": [
"45.8443527",
"45.9247096",
"23.925522",
"24.1135889"
],
"lat": "45.8804278",
"lon": "24.0576688",
"display_name": "Ocna Sibiului, Sibiu, România",
"class": "boundary",
"type": "administrative",
"importance": 0.44487355764569475,
"icon": "nominatim/ui/mapicons/poi_boundary_administrative.p.20.png"
},
{
"place_id": 754736,
"licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",
"osm_type": "node",
"osm_id": 272615628,
"boundingbox": [
"48.702952",
"48.742952",
"12.1871645",
"12.2271645"
],
"lat": "48.722952",
"lon": "12.2071645",
"display_name": "Salzburg, Ergoldsbach, Ergoldsbach (VGem), Landkreis Landshut, Bayern, 84061, Deutschland",
"class": "place",
"type": "hamlet",
"importance": 0.36,
"icon": "nominatim/ui/mapicons/poi_place_village.p.20.png"
},
{
"place_id": 39998363,
"licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",
"osm_type": "node",
"osm_id": 3129834575,
"boundingbox": [
"48.147852",
"48.187852",
"11.91075",
"11.95075"
],
"lat": "48.167852",
"lon": "11.93075",
"display_name": "Salzburg, Forstinning, Landkreis Ebersberg, Bayern, 85661, Deutschland",
"class": "place",
"type": "hamlet",
"importance": 0.36,
"icon": "nominatim/ui/mapicons/poi_place_village.p.20.png"
},
{
"place_id": 5797359,
"licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",
"osm_type": "node",
"osm_id": 689245417,
"boundingbox": [
"48.0948845",
"48.0949845",
"12.0089361",
"12.0090361"
],
"lat": "48.0949345",
"lon": "12.0089861",
"display_name": "Salzburg, Steinhöring, Landkreis Ebersberg, Bayern, 85643, Deutschland",
"class": "place",
"type": "isolated_dwelling",
"importance": 0.30999999999999994
},
{
"place_id": 282302419,
"licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",
"osm_type": "relation",
"osm_id": 2320157,
"boundingbox": [
"48.9503717",
"48.9921602",
"21.2412855",
"21.3354271"
],
"lat": "48.97126715",
"lon": "21.278212833452415",
"display_name": "Solivar, Prešov, okres Prešov, Prešovský kraj, Východné Slovensko, 08005, Slovensko",
"class": "boundary",
"type": "administrative",
"importance": 0.3,
"icon": "nominatim/ui/mapicons/poi_boundary_administrative.p.20.png"
}
]
Loading

0 comments on commit 7aaed34

Please sign in to comment.