Giter VIP home page Giter VIP logo

baidugeo's People

Contributors

chrismuir avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

baidugeo's Issues

"con error: 500" causes json parse step to fail

For function get_coords(), if any of the API calls fail with a connection error AND type is set to data.frame, then this step will throw an error:

# If input arg "type" is data.frame, parse the vector of json strings, 
# extract data into a data frame.
if (type == "data.frame") {
  out <- from_json_coords_vector(location, out)
}

since con error: 500 is not a valid JSON string.

Failed to download

when i use your instruction , i find these errors when download the packages using R
Error (main.R#8): Failed to install 'baidugeo' from GitHub:
C symbol name "rs_canBuildCpp" not in load table
Here are my codes:
install.packages('devtools')
library(devtools)
install_github("ChrisMuir/baidugeo", force=TRUE)
library(baidugeo)

I wonder why they happened.THX

Add 'city' arg to func 'bmap_get_coords()'

Per this API document, the coordinates API call can take an optional argument for City/Prefecture. I should include a city arg to function baidugeo::bmap_get_coords(), so that users have the option of passing in a city string with the main address string.

Only tricky thing will be that the location arg of function bmap_get_coords() is vectorized, so I'm not sure if it's best to require that a character vector passed to the new arg city have the same length as the character vector passed to arg location. We could also allow for a scalar string input to arg city, and recycle it so that it's applied to each address in arg location.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.