Skip to content

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

@ChrisMuir

Description

@ChrisMuir

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions