Arguments
- x
(Optional) A
character
vector with the names of Brazilian states or federal units. IfNULL
, returns all state latitudes (Default:NULL
).
Value
A character
vector with the latitude of
Brazilian states.
Details
The data from this function is based on Google's Geocoding API gathered via
the tidygeocoder
R package.
See also
Other Brazil functions:
get_brazil_fu()
,
get_brazil_municipality()
,
get_brazil_municipality_code()
,
get_brazil_region()
,
get_brazil_state()
,
get_brazil_state_by_utc()
,
get_brazil_state_capital()
,
get_brazil_state_code()
,
get_brazil_state_longitude()
,
render_brazil_address()
Examples
get_brazil_state_latitude()
#> Acre Alagoas Amapá Amazonas
#> -9.9765362 -9.6476843 0.0401529 -3.1316333
#> Bahia Ceará Distrito Federal Espírito Santo
#> -12.9822499 -3.7304512 -15.7934036 -20.3200917
#> Goiás Maranhão Mato Grosso Mato Grosso do Sul
#> -16.6808820 -2.5295265 -15.5986686 -20.4640173
#> Minas Gerais Pará Paraíba Paraná
#> -19.9227318 -1.4505600 -7.1215981 -25.4295963
#> Pernambuco Piauí Rio de Janeiro Rio Grande do Norte
#> -8.0584933 -5.0874608 -22.9110137 -5.8053980
#> Rio Grande do Sul Rondônia Roraima Santa Catarina
#> -30.0324999 -8.7494525 2.8208478 -27.5973002
#> São Paulo Sergipe Tocantins
#> -23.5506507 -10.9162061 -10.1837852
get_brazil_state_latitude("sao paulo")
#> [1] -23.55065
#> [1] -23.55065 # Expected
get_brazil_state_latitude("sp")
#> [1] -23.55065
#> [1] -23.55065 # Expected