diff --git a/NAMESPACE b/NAMESPACE index b6c77cc..60f56d5 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -4,6 +4,5 @@ export(coordinates) export(get_coor) export(get_rc) export(near_rc) -importFrom(XML,xmlToList) -importFrom(httr,GET) -importFrom(httr,stop_for_status) +import(XML) +import(httr) diff --git a/R/coordinates.R b/R/coordinates.R index 79aab46..682dbea 100644 --- a/R/coordinates.R +++ b/R/coordinates.R @@ -1,6 +1,8 @@ #'@name coordinates #'@aliases coordinates #' +#'@title Coordinates (SRS) +#' #'@description Dataframe with all the posible Spatial Reference Systems (SRS) availables #'to query the Catastro API. #' diff --git a/R/get_rc.R b/R/get_rc.R index 52c6aaf..92b36af 100644 --- a/R/get_rc.R +++ b/R/get_rc.R @@ -23,7 +23,7 @@ #' for every SRS requested. #'@references http://ovc.catastro.meh.es/ovcservweb/OVCSWLocalizacionRC/OVCCoordenadas.asmx?op=Consulta_RCCOOR #' -#'@author Ángel Delgado Panadero. +#'@author Angel Delgado Panadero. #' #'@examples #'direction <- get_rc(38.6196566583596,-3.45624183836806, 'EPSG:4230') @@ -34,8 +34,8 @@ #' #' #'@export -#'@importFrom httr -#'@importFrom XML +#'@import httr +#'@import XML diff --git a/R/near_rc.R b/R/near_rc.R index cb817ff..6112bb4 100644 --- a/R/near_rc.R +++ b/R/near_rc.R @@ -29,13 +29,13 @@ #' #'@author Angel Delgado Panadero. #' -#'@example +#'@examples #'direction <- near_rc(40.96002, -5.663408) #'print(direction) #' #'@export -#'@importFrom httr -#'@importFrom XML +#'@import httr +#'@import XML near_rc <- function(lat,lon,SRS="Google"){ diff --git a/man/coordinates.Rd b/man/coordinates.Rd new file mode 100644 index 0000000..5b9e347 --- /dev/null +++ b/man/coordinates.Rd @@ -0,0 +1,20 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/coordinates.R +\docType{data} +\name{coordinates} +\alias{coordinates} +\title{Coordinates (SRS)} +\format{An object of class \code{data.frame} with 14 rows and 1 columns.} +\usage{ +coordinates +} +\description{ +Dataframe with all the posible Spatial Reference Systems (SRS) availables +to query the Catastro API. +} +\references{ +http://ovc.catastro.meh.es/ovcservweb/OVCSWLocalizacionRC/OVCCoordenadas.asmx?op=Consulta_RCCOOR_Distancia +http://ovc.catastro.meh.es/ovcservweb/OVCSWLocalizacionRC/OVCCoordenadas.asmx?op=Consulta_CPMRC +http://ovc.catastro.meh.es/ovcservweb/OVCSWLocalizacionRC/OVCCoordenadas.asmx?op=Consulta_RCCOOR +} +\keyword{datasets} diff --git a/man/get_rc.Rd b/man/get_rc.Rd index db1bf71..c616cdf 100644 --- a/man/get_rc.Rd +++ b/man/get_rc.Rd @@ -42,5 +42,5 @@ print(directions) http://ovc.catastro.meh.es/ovcservweb/OVCSWLocalizacionRC/OVCCoordenadas.asmx?op=Consulta_RCCOOR } \author{ -Ángel Delgado Panadero. +Angel Delgado Panadero. } diff --git a/man/near_rc.Rd b/man/near_rc.Rd index 192a55f..4499663 100644 --- a/man/near_rc.Rd +++ b/man/near_rc.Rd @@ -30,6 +30,11 @@ Returns the Cadastral Reference of the state as well as the address System. In case that there is not any cadastral reference in the exact point, the function returns all the cadastral references in a square 50 meters long centered in the current point. +} +\examples{ +direction <- near_rc(40.96002, -5.663408) +print(direction) + } \references{ http://ovc.catastro.meh.es/ovcservweb/OVCSWLocalizacionRC/OVCCoordenadas.asmx?op=Consulta_RCCOOR_Distancia