GET api/Search/Area?lang={lang}&text={text}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
lang

string

Required

text

string

Required

Body Parameters

None.

Response Information

Resource Description

SearchAreaView
NameDescriptionTypeAdditional information
Type

SearchAreaType

None.

Result1

Collection of AreaResult

None.

Result2

Collection of AreaResult

None.

Result3

Collection of GooglePlaceArea

None.

Result4

Collection of GooglePlaceArea

None.

Response Formats

application/json, text/json

Sample:
{
  "type": 0,
  "result1": [
    {
      "cityId": 1,
      "lat": 1.1,
      "lng": 1.1,
      "text": "sample string 1",
      "address": "sample string 2",
      "score": 1.1,
      "type": 0,
      "placeId": "sample string 3"
    },
    {
      "cityId": 1,
      "lat": 1.1,
      "lng": 1.1,
      "text": "sample string 1",
      "address": "sample string 2",
      "score": 1.1,
      "type": 0,
      "placeId": "sample string 3"
    }
  ],
  "result2": [
    {
      "cityId": 1,
      "lat": 1.1,
      "lng": 1.1,
      "text": "sample string 1",
      "address": "sample string 2",
      "score": 1.1,
      "type": 0,
      "placeId": "sample string 3"
    },
    {
      "cityId": 1,
      "lat": 1.1,
      "lng": 1.1,
      "text": "sample string 1",
      "address": "sample string 2",
      "score": 1.1,
      "type": 0,
      "placeId": "sample string 3"
    }
  ],
  "result3": [
    {
      "placeId": "sample string 1",
      "name": "sample string 2",
      "address": "sample string 3",
      "rating": 4.1,
      "types": "sample string 5",
      "type": 6,
      "lat": 1.1,
      "lng": 1.1,
      "created": "2025-08-27T07:14:59.0705593+00:00"
    },
    {
      "placeId": "sample string 1",
      "name": "sample string 2",
      "address": "sample string 3",
      "rating": 4.1,
      "types": "sample string 5",
      "type": 6,
      "lat": 1.1,
      "lng": 1.1,
      "created": "2025-08-27T07:14:59.0705593+00:00"
    }
  ],
  "result4": [
    {
      "placeId": "sample string 1",
      "name": "sample string 2",
      "address": "sample string 3",
      "rating": 4.1,
      "types": "sample string 5",
      "type": 6,
      "lat": 1.1,
      "lng": 1.1,
      "created": "2025-08-27T07:14:59.0705593+00:00"
    },
    {
      "placeId": "sample string 1",
      "name": "sample string 2",
      "address": "sample string 3",
      "rating": 4.1,
      "types": "sample string 5",
      "type": 6,
      "lat": 1.1,
      "lng": 1.1,
      "created": "2025-08-27T07:14:59.0705593+00:00"
    }
  ]
}

text/html

Sample:
{"type":0,"result1":[{"cityId":1,"lat":1.1,"lng":1.1,"text":"sample string 1","address":"sample string 2","score":1.1,"type":0,"placeId":"sample string 3"},{"cityId":1,"lat":1.1,"lng":1.1,"text":"sample string 1","address":"sample string 2","score":1.1,"type":0,"placeId":"sample string 3"}],"result2":[{"cityId":1,"lat":1.1,"lng":1.1,"text":"sample string 1","address":"sample string 2","score":1.1,"type":0,"placeId":"sample string 3"},{"cityId":1,"lat":1.1,"lng":1.1,"text":"sample string 1","address":"sample string 2","score":1.1,"type":0,"placeId":"sample string 3"}],"result3":[{"placeId":"sample string 1","name":"sample string 2","address":"sample string 3","rating":4.1,"types":"sample string 5","type":6,"lat":1.1,"lng":1.1,"created":"2025-08-27T07:14:59.0705593+00:00"},{"placeId":"sample string 1","name":"sample string 2","address":"sample string 3","rating":4.1,"types":"sample string 5","type":6,"lat":1.1,"lng":1.1,"created":"2025-08-27T07:14:59.0705593+00:00"}],"result4":[{"placeId":"sample string 1","name":"sample string 2","address":"sample string 3","rating":4.1,"types":"sample string 5","type":6,"lat":1.1,"lng":1.1,"created":"2025-08-27T07:14:59.0705593+00:00"},{"placeId":"sample string 1","name":"sample string 2","address":"sample string 3","rating":4.1,"types":"sample string 5","type":6,"lat":1.1,"lng":1.1,"created":"2025-08-27T07:14:59.0705593+00:00"}]}

application/xml, text/xml

Sample:
<SearchController.SearchAreaView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EB.Api.Controllers">
  <Result1 xmlns:d2p1="http://schemas.datacontract.org/2004/07/EB.Service.Search.Services">
    <d2p1:AreaResult>
      <d2p1:Address>sample string 2</d2p1:Address>
      <d2p1:CityId>1</d2p1:CityId>
      <d2p1:Distance>1.1</d2p1:Distance>
      <d2p1:Lat>1.1</d2p1:Lat>
      <d2p1:Lng>1.1</d2p1:Lng>
      <d2p1:PlaceId>sample string 3</d2p1:PlaceId>
      <d2p1:Score>1.1</d2p1:Score>
      <d2p1:Text>sample string 1</d2p1:Text>
      <d2p1:Type>ResultNotFound</d2p1:Type>
    </d2p1:AreaResult>
    <d2p1:AreaResult>
      <d2p1:Address>sample string 2</d2p1:Address>
      <d2p1:CityId>1</d2p1:CityId>
      <d2p1:Distance>1.1</d2p1:Distance>
      <d2p1:Lat>1.1</d2p1:Lat>
      <d2p1:Lng>1.1</d2p1:Lng>
      <d2p1:PlaceId>sample string 3</d2p1:PlaceId>
      <d2p1:Score>1.1</d2p1:Score>
      <d2p1:Text>sample string 1</d2p1:Text>
      <d2p1:Type>ResultNotFound</d2p1:Type>
    </d2p1:AreaResult>
  </Result1>
  <Result2 xmlns:d2p1="http://schemas.datacontract.org/2004/07/EB.Service.Search.Services">
    <d2p1:AreaResult>
      <d2p1:Address>sample string 2</d2p1:Address>
      <d2p1:CityId>1</d2p1:CityId>
      <d2p1:Distance>1.1</d2p1:Distance>
      <d2p1:Lat>1.1</d2p1:Lat>
      <d2p1:Lng>1.1</d2p1:Lng>
      <d2p1:PlaceId>sample string 3</d2p1:PlaceId>
      <d2p1:Score>1.1</d2p1:Score>
      <d2p1:Text>sample string 1</d2p1:Text>
      <d2p1:Type>ResultNotFound</d2p1:Type>
    </d2p1:AreaResult>
    <d2p1:AreaResult>
      <d2p1:Address>sample string 2</d2p1:Address>
      <d2p1:CityId>1</d2p1:CityId>
      <d2p1:Distance>1.1</d2p1:Distance>
      <d2p1:Lat>1.1</d2p1:Lat>
      <d2p1:Lng>1.1</d2p1:Lng>
      <d2p1:PlaceId>sample string 3</d2p1:PlaceId>
      <d2p1:Score>1.1</d2p1:Score>
      <d2p1:Text>sample string 1</d2p1:Text>
      <d2p1:Type>ResultNotFound</d2p1:Type>
    </d2p1:AreaResult>
  </Result2>
  <Result3 xmlns:d2p1="http://schemas.datacontract.org/2004/07/EB.Service.Contracts">
    <d2p1:GooglePlaceArea>
      <d2p1:Address>sample string 3</d2p1:Address>
      <d2p1:Created>2025-08-27T07:14:59.0705593+00:00</d2p1:Created>
      <d2p1:Lat>1.1</d2p1:Lat>
      <d2p1:Lng>1.1</d2p1:Lng>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:PlaceId>sample string 1</d2p1:PlaceId>
      <d2p1:Rating>4.1</d2p1:Rating>
      <d2p1:Type>6</d2p1:Type>
      <d2p1:Types>sample string 5</d2p1:Types>
    </d2p1:GooglePlaceArea>
    <d2p1:GooglePlaceArea>
      <d2p1:Address>sample string 3</d2p1:Address>
      <d2p1:Created>2025-08-27T07:14:59.0705593+00:00</d2p1:Created>
      <d2p1:Lat>1.1</d2p1:Lat>
      <d2p1:Lng>1.1</d2p1:Lng>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:PlaceId>sample string 1</d2p1:PlaceId>
      <d2p1:Rating>4.1</d2p1:Rating>
      <d2p1:Type>6</d2p1:Type>
      <d2p1:Types>sample string 5</d2p1:Types>
    </d2p1:GooglePlaceArea>
  </Result3>
  <Result4 xmlns:d2p1="http://schemas.datacontract.org/2004/07/EB.Service.Contracts">
    <d2p1:GooglePlaceArea>
      <d2p1:Address>sample string 3</d2p1:Address>
      <d2p1:Created>2025-08-27T07:14:59.0705593+00:00</d2p1:Created>
      <d2p1:Lat>1.1</d2p1:Lat>
      <d2p1:Lng>1.1</d2p1:Lng>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:PlaceId>sample string 1</d2p1:PlaceId>
      <d2p1:Rating>4.1</d2p1:Rating>
      <d2p1:Type>6</d2p1:Type>
      <d2p1:Types>sample string 5</d2p1:Types>
    </d2p1:GooglePlaceArea>
    <d2p1:GooglePlaceArea>
      <d2p1:Address>sample string 3</d2p1:Address>
      <d2p1:Created>2025-08-27T07:14:59.0705593+00:00</d2p1:Created>
      <d2p1:Lat>1.1</d2p1:Lat>
      <d2p1:Lng>1.1</d2p1:Lng>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:PlaceId>sample string 1</d2p1:PlaceId>
      <d2p1:Rating>4.1</d2p1:Rating>
      <d2p1:Type>6</d2p1:Type>
      <d2p1:Types>sample string 5</d2p1:Types>
    </d2p1:GooglePlaceArea>
  </Result4>
  <Type>ResultNotFound</Type>
</SearchController.SearchAreaView>