MapQuest Static Map, Shape returns a very large string

3 posts / 0 new
Last post
code00111
MapQuest Static Map, Shape returns a very large string

Hi,

I'm currently developing a Directions Application using Map Quest API on my website, I'm running into the issue when I put a direction from point A being very far away from point B, the shape instance returns a very large string (>70k chars) which Http request can't handle so it returns null. I have tried multiple websites and testing methods and none of them seem to work.

I would like to know if anyone could tell me a way to deal with that.

Thank you,
Software Engineer


MQBrianCoakley
Try the generalize parameter.
Try the generalize parameter. It will remove points that do not deviate from the points around it. So it will remove points that indicate a straight line.

code00111
Problem fixed, man I love you

Problem fixed, man I love you!

Software Engineer