iOS Question HttpJob GetString return Incomplete result

mkh_fx

Member
Licensed User
Longtime User
i used google map api through json
in browser result is complete but in b4i through below code job.Success = true but GetString return incomplete result

B4X:
Dim str As String = "https://maps.googleapis.com/maps/api/place/autocomplete/json?input=jordan&language=en&key=[API_Key]"
    Dim http As HttpJob
    http.Initialize("getAddress",Me)
    http.PostString(str,"")

and returned result after JobDone is
B4X:
{
   "predictions" : [
      {
         "description" : "Jordan",
         "id" : "82e6af4e2dfe28362842fdc90e6a724b19357d9c",
         "matched_substrings" : [
            {
               "length" : 6,
               "offset" : 0
            }
         ],
         "place_id" : "ChIJmd5kZkdvABURmU4mUQdbKI0",
         "reference" : "CiQeAAAAb3xT1U5eN2ZtMWkW4nMGFNg0XS7gzhxlgzjXHhHxaK8SEE1fWTeBpHynOvV9aET4rrUaFESHXyx__hEmPkKYam-NqxQJBTg-",
         "structured_formatting" : {
            "main_text" : "Jordan",
            "main_text_matched_substrings" : [
               {
                  "length" : 6,
                  "offset" : 0
               }
            ]
         },
         "terms......
 

JanPRO

Well-Known Member
Licensed User
Longtime User
Hi,
GetString return incomplete result

How do you have test this? Did you log the result?

When a log is too long, B4i will truncate the message (you will get this info in the logs), but this doens't mean it's incomplete.

Jan
 
Upvote 0

mkh_fx

Member
Licensed User
Longtime User
thanks JanPRO
please check attachment file

this is very simple code to get result from URL (google map api)
in my android(B4A) version this code work properly
 

Attachments

  • Untitled.png
    Untitled.png
    84.9 KB · Views: 257
Upvote 0
Top