locked
Azure Maps batch request language support RRS feed

  • Question

  • When I make an API request for a single address with Swedish letters I get a correct answer but if the same address is part of a batch request all the special characters are substituted for unicode and I get no hit. I've tried URL Encode the queries in the batch but that makes no difference.

    This works:

    /search/address/json?api-version=1.0&subscription-key=123&query=Långsjövägen 67, 13554 Tyresö

    But a post like this doesn't:

    { "queries":
      [
        "?query=Långsjövägen 67, 13554 Tyresö",
      ]
    }

    I can get the batch respons and all works fine except that the unicode messes up the search.

    How can I make batch request with Swedish addresses?

    Thanks in advance!

    Monday, September 10, 2018 3:51 PM

Answers

All replies

  • Just to verify, when you encode your query, does your post body look like this:

    { "queries":
      [
        "?query=L%C3%A5ngsj%C3%B6v%C3%A4gen%2067%2C%2013554%20Tyres%C3%B6",
      ]
    }

    Tuesday, September 11, 2018 12:21 AM
  • Hi Ricky,

    Correct. And I get the following response:

    {
        "summary": {
            "successfulRequests": 1,
            "totalRequests": 1
        },
        "batchResults": [
            {
                "summary": {
                    "query": "l u00e5ngsj u00f6v u00e4gen 67 13554 tyres u00f6",
                    "queryType": "NON_NEAR",
                    "queryTime": 84,
                    "numResults": 0,
                    "offset": 0,
                    "totalResults": 0,
                    "fuzzyLevel": 2
                },
                "results": []
            }
        ]
    }

    Tuesday, September 11, 2018 8:20 AM
  • That definitely looks like a bug. I will pass this on to the right people in my team to get this investigated. Thanks for reporting. 
    Tuesday, September 11, 2018 11:02 PM
  • Eric1223311223,

    Can you test the same and check if it is now working as expected? The fix was deployed.

    Thanks!

    Wednesday, October 3, 2018 9:49 AM