I was trying to use the Routing Service API via python. When I try to read the response with the following code, I receive an error “json.decoder.JSONDecodeError: Unterminated string starting at: line 1 column 10870 (char 10869)”.
json1_data = json.load(response.text)
From: 1.29520286174268,103.836921549212 (postal code: 238428)
To: 1.3034563846745,103.857453500579 (postal code: 198423)
I tried the same code and did not encounter this error with the rest of the coordinates. I am wondering if there is a step I missed to resolve this error. Hope someone can advise.
Thank you in advance!