GET api/election/pollingplace/{lat}/{lng}

Gets Polling Place and Election Information

Request Information

URI Parameters

NameDescriptionTypeAdditional information
lat

string

Required

lng

string

Required

Body Parameters

None.

Response Information

Resource Description

Collection of ElectionPollingPlaceModel
NameDescriptionTypeAdditional information
pct_number

decimal number

None.

info

string

None.

id

integer

None.

address

string

None.

zipcode

string

None.

city

string

None.

name

string

None.

distance

integer

None.

lat

decimal number

None.

lng

decimal number

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "pct_number": 1.1,
    "info": "sample string 2",
    "id": 3,
    "address": "sample string 4",
    "zipcode": "sample string 5",
    "city": "sample string 6",
    "name": "sample string 7",
    "distance": 8,
    "lat": 9.1,
    "lng": 10.1
  },
  {
    "pct_number": 1.1,
    "info": "sample string 2",
    "id": 3,
    "address": "sample string 4",
    "zipcode": "sample string 5",
    "city": "sample string 6",
    "name": "sample string 7",
    "distance": 8,
    "lat": 9.1,
    "lng": 10.1
  }
]

application/xml, text/xml

Sample:
<ArrayOfElectionPollingPlaceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/api.Models">
  <ElectionPollingPlaceModel>
    <address>sample string 4</address>
    <city>sample string 6</city>
    <distance>8</distance>
    <id>3</id>
    <info>sample string 2</info>
    <lat>9.1</lat>
    <lng>10.1</lng>
    <name>sample string 7</name>
    <pct_number>1.1</pct_number>
    <zipcode>sample string 5</zipcode>
  </ElectionPollingPlaceModel>
  <ElectionPollingPlaceModel>
    <address>sample string 4</address>
    <city>sample string 6</city>
    <distance>8</distance>
    <id>3</id>
    <info>sample string 2</info>
    <lat>9.1</lat>
    <lng>10.1</lng>
    <name>sample string 7</name>
    <pct_number>1.1</pct_number>
    <zipcode>sample string 5</zipcode>
  </ElectionPollingPlaceModel>
</ArrayOfElectionPollingPlaceModel>