POST api/Endereco/SelectPlaceByCoordinates
Request Information
URI Parameters
None.
Body Parameters
LocationDto| Name | Description | Type | Additional information |
|---|---|---|---|
| lat | decimal number |
Range: inclusive between -90 and 90 |
|
| lng | decimal number |
Range: inclusive between -180 and 180 |
Request Formats
application/json, text/json
Sample:
{
"lat": 1.0,
"lng": 2.0
}
application/xml, text/xml
Sample:
<LocationDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CidConnectada.Entities.Model.Dto.Location"> <lat>1</lat> <lng>2</lng> </LocationDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
EnderecoDto| Name | Description | Type | Additional information |
|---|---|---|---|
| rua | string |
None. |
|
| numero | string |
None. |
|
| complemento | string |
None. |
|
| bairro | string |
None. |
|
| cep | string |
None. |
|
| enderecoCompleto | string |
None. |
|
| coordenadas | LocationDto |
None. |
|
| googleMapsPlaceId | string |
None. |
|
| cidadeId | integer |
None. |
|
| cidadeNome | string |
None. |
|
| estadoSigla | string |
None. |
|
| key | integer |
None. |
|
| id | integer |
None. |
|
| isNew | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"rua": "sample string 1",
"numero": "sample string 2",
"complemento": "sample string 3",
"bairro": "sample string 4",
"cep": "sample string 5",
"enderecoCompleto": "sample string 1, sample string 2, sample string 4, sample string 8 - sample string 9, sample string 5",
"coordenadas": {
"lat": 1.0,
"lng": 2.0
},
"googleMapsPlaceId": "sample string 6",
"cidadeId": 7,
"cidadeNome": "sample string 8",
"estadoSigla": "sample string 9",
"key": 10,
"id": 10,
"isNew": true
}
application/xml, text/xml
Sample:
<EnderecoDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CidConnectada.Entities.Model.Dto.Location">
<isNew xmlns="http://schemas.datacontract.org/2004/07/Zenite.Pi.Web.Models">true</isNew>
<key xmlns="http://schemas.datacontract.org/2004/07/Zenite.Pi.Web.Models">10</key>
<bairro>sample string 4</bairro>
<cep>sample string 5</cep>
<cidadeId>7</cidadeId>
<cidadeNome>sample string 8</cidadeNome>
<complemento>sample string 3</complemento>
<coordenadas>
<lat>1</lat>
<lng>2</lng>
</coordenadas>
<estadoSigla>sample string 9</estadoSigla>
<googleMapsPlaceId>sample string 6</googleMapsPlaceId>
<numero>sample string 2</numero>
<rua>sample string 1</rua>
</EnderecoDto>