GET api/election/district/{lat}/{lng}
Gets election districts by latitude/longitude
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| lat | string |
Required |
|
| lng | string |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of ElectionModel| Name | Description | Type | Additional information |
|---|---|---|---|
| type | string |
None. |
|
| district | integer |
None. |
|
| representative | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"type": "sample string 1",
"district": 2,
"representative": "sample string 3"
},
{
"type": "sample string 1",
"district": 2,
"representative": "sample string 3"
}
]
application/xml, text/xml
Sample:
<ArrayOfElectionModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/api.Models">
<ElectionModel>
<district>2</district>
<representative>sample string 3</representative>
<type>sample string 1</type>
</ElectionModel>
<ElectionModel>
<district>2</district>
<representative>sample string 3</representative>
<type>sample string 1</type>
</ElectionModel>
</ArrayOfElectionModel>