Skip to content

mapbox fails with \t or \n in address #190

@LukasWallrich

Description

@LukasWallrich

When I use mapbox, the following gives an Error in curl::curl_fetch_memory(url, handle = handle) : URL using bad/illegal format or missing URL

tidygeocoder::geo(address = "Department \n Marburg", method = "mapbox")

I think this is because the address is inserted into the URL for mapbox, and api_url_modification() does rather little escaping. Maybe that could be made more robust?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions