POST api/Address/PlaceAutoComplete

Request Information

URI Parameters

None.

Body Parameters

PlaceAutoCompleteRequestDto
NameDescriptionTypeAdditional information
input

string

None.

sessionToken

string

None.

locationBias

LocationBias

None.

Request Formats

application/json, text/json

Sample:
{
  "input": "sample string 1",
  "sessionToken": "sample string 2",
  "locationBias": {
    "radius": 1.0,
    "center": {
      "lat": 1.0,
      "lng": 2.0
    }
  }
}

application/xml, text/xml

Sample:
<PlaceAutoCompleteRequestDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OffDriver.Entities.Dto.Location">
  <input>sample string 1</input>
  <locationBias>
    <center>
      <lat>1</lat>
      <lng>2</lng>
    </center>
    <radius>1</radius>
  </locationBias>
  <sessionToken>sample string 2</sessionToken>
</PlaceAutoCompleteRequestDto>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'PlaceAutoCompleteRequestDto'.

Response Information

Resource Description

Collection of PlaceAutoCompletePredictionsDto
NameDescriptionTypeAdditional information
fullAddress

string

None.

googleMapsPlaceId

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "fullAddress": "sample string 1",
    "googleMapsPlaceId": "sample string 2"
  },
  {
    "fullAddress": "sample string 1",
    "googleMapsPlaceId": "sample string 2"
  }
]

application/xml, text/xml

Sample:
<ArrayOfPlaceAutoCompletePredictionsDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OffDriver.Entities.Dto.Location">
  <PlaceAutoCompletePredictionsDto>
    <fullAddress>sample string 1</fullAddress>
    <googleMapsPlaceId>sample string 2</googleMapsPlaceId>
  </PlaceAutoCompletePredictionsDto>
  <PlaceAutoCompletePredictionsDto>
    <fullAddress>sample string 1</fullAddress>
    <googleMapsPlaceId>sample string 2</googleMapsPlaceId>
  </PlaceAutoCompletePredictionsDto>
</ArrayOfPlaceAutoCompletePredictionsDto>