Last active
August 29, 2015 14:08
-
-
Save ateucher/cf6652bd5b1f8adbc6d8 to your computer and use it in GitHub Desktop.
Testing to_geo_json and to_geojson
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
devtools::install_github("ropensci/togeojson@reworkapi") | |
library('togeojson') | |
library('maps') | |
data(us.cities) | |
to_geo_json(us.cities[1:2,], lat='lat', lon='long') | |
to_geojson(us.cities[1:2,], lat='lat', lon='long') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"type":["Point"],"geometry":{"type":["Point"],"coordinates":[-99.74,32.45]},"properties":{"name":["Abilene TX"],"country.etc":["TX"],"pop":["113888"],"capital":["0"]}},{"type":["Point"],"geometry":{"type":["Point"],"coordinates":[-81.52,41.08]},"properties":{"name":["Akron OH"],"country.etc":["OH"],"pop":["206634"],"capital":["0"]}}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment