GET api/crime/details/{lat}/{lng}/{days}/{distance}

Gets nearest crime incident details by latitude/longitude

Request Information

URI Parameters

NameDescriptionTypeAdditional information
lat

string

Required

lng

string

Required

days

decimal number

Required

distance

decimal number

Required

Body Parameters

None.

Response Information

Resource Description

Collection of CrimeModel
NameDescriptionTypeAdditional information
address

string

None.

case_number

string

None.

agency

string

None.

law_beat

string

None.

offense_short_description

string

None.

offense_long_description

string

None.

offense_group_short_description

string

None.

offense_group_long_description

string

None.

date_occurred

string

None.

latitude

string

None.

longitude

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "address": "sample string 1",
    "case_number": "sample string 2",
    "agency": "sample string 3",
    "law_beat": "sample string 4",
    "offense_short_description": "sample string 5",
    "offense_long_description": "sample string 6",
    "offense_group_short_description": "sample string 7",
    "offense_group_long_description": "sample string 8",
    "date_occurred": "sample string 9",
    "latitude": "sample string 10",
    "longitude": "sample string 11"
  },
  {
    "address": "sample string 1",
    "case_number": "sample string 2",
    "agency": "sample string 3",
    "law_beat": "sample string 4",
    "offense_short_description": "sample string 5",
    "offense_long_description": "sample string 6",
    "offense_group_short_description": "sample string 7",
    "offense_group_long_description": "sample string 8",
    "date_occurred": "sample string 9",
    "latitude": "sample string 10",
    "longitude": "sample string 11"
  }
]

application/xml, text/xml

Sample:
<ArrayOfCrimeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/api.Models">
  <CrimeModel>
    <address>sample string 1</address>
    <agency>sample string 3</agency>
    <case_number>sample string 2</case_number>
    <date_occurred>sample string 9</date_occurred>
    <latitude>sample string 10</latitude>
    <law_beat>sample string 4</law_beat>
    <longitude>sample string 11</longitude>
    <offense_group_long_description>sample string 8</offense_group_long_description>
    <offense_group_short_description>sample string 7</offense_group_short_description>
    <offense_long_description>sample string 6</offense_long_description>
    <offense_short_description>sample string 5</offense_short_description>
  </CrimeModel>
  <CrimeModel>
    <address>sample string 1</address>
    <agency>sample string 3</agency>
    <case_number>sample string 2</case_number>
    <date_occurred>sample string 9</date_occurred>
    <latitude>sample string 10</latitude>
    <law_beat>sample string 4</law_beat>
    <longitude>sample string 11</longitude>
    <offense_group_long_description>sample string 8</offense_group_long_description>
    <offense_group_short_description>sample string 7</offense_group_short_description>
    <offense_long_description>sample string 6</offense_long_description>
    <offense_short_description>sample string 5</offense_short_description>
  </CrimeModel>
</ArrayOfCrimeModel>