Skip to content

Maximum URL size #138

@PedroFabrino

Description

@PedroFabrino

According to Google's documentation for Static Map, the max size for url is 8192 characters, https://developers.google.com/maps/documentation/static-maps/intro#url-size-restriction.

But, when building an static map with gm.staticMap(params),
I get the following error:
Error: Request too long for google to handle (2048 characters).
at module.exports (.../node_modules/googlemaps/lib/utils/makeRequest.js:63:13)
at module.exports [as staticMap] (.../node_modules/googlemaps/lib/staticMap.js:116:10)

It's thrown an error before making a request for google, so it's internal.

Could it be fixed? Or should I make a fork for doing so? Or is there a reason as not working?

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