Batch address search not returning the Id that i've supplied

ASell 5 Reputation points
2024-12-11T21:56:29.78+00:00

i'm doing batch address search to get the lat longs of addresses. In the batch request body i'm specifying an optional ID in the query, but its not being returned in the response. This means i cant match the geocodes back to my records. The batch request body looks as follows (actual no. of address much larger than this!):

{"batchItems":[{"query":"?query=, Unit 59, 1-49 Paas Place, WILLIAMSTOWN, VIC, 3016, Australia","optionalId":"0036F00003L0DRgQAd"},{"query":"?query=, 17 Walker St, CLIFTON HILL, VIC, 3068, Australia","optionalId":"0036F00003L0E0cQAv"},{"query":"?query=, 2 Dumfries Court, TORQUAY, VIC, 3228, Australia","optionalId":"0036F00003L0TLMQAr"},{"query":"?query=, 13 Glen Ebor Ave, BLACKBURN, VIC, 3130, Australia","optionalId":"0036F00003L0b3JQAk"},{"query":"?query=, 67-81 Maroondah Hwy, CROYDON, VIC, 3136, Australia","optionalId":"0036F00003L0b6mQAm"}]}

Is there an issue with the request format or is there something i should be requesting to get the optionalID back specifically in the GET request for the geocoded data. Many thanks for any help!

Azure Maps
Azure Maps
An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.
764 questions
{count} votes

1 answer

Sort by: Most helpful
  1. IoTGirl 3,221 Reputation points Microsoft Employee
    2024-12-11T23:23:08.3066667+00:00

    You are calling V1 and expecting a V2 result.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.