GET 1.0/internal/schools?latitude={latitude}&longitude={longitude}&count={count}&distance={distance}

Description

Gets schools within specified distance of the passed co-ordinates

URI Parameters

Name Description Type Additional information
latitude

Latitude co-ordinate value

decimal number

Required

longitude

Longitude co-ordinate value

decimal number

Required

count

Number of results to return

integer

Default value is 30

distance

Retrieve schools within the specified number of miles

decimal number

Default value is 20

None.

None.

A Schools model containing primary and secondary schools

Name Description Type Additional information
PrimarySchools

Collection of School

None.

SecondarySchools

Collection of School

None.

application/json, text/json

Sample:
{
  "primarySchools": [
    {
      "urn": 1,
      "establishmentName": "sample string 2",
      "street": "sample string 3",
      "locality": "sample string 4",
      "town": "sample string 5",
      "county": "sample string 6",
      "postcode": "sample string 7",
      "website": "sample string 8",
      "establishmentStatus": 9,
      "ofstedRating": "sample string 10",
      "genderID": 11,
      "statutoryLowAge": 12,
      "statutoryHighAge": 13,
      "capacity": 14,
      "numberOfPupils": 15,
      "establishmentTypeGroupID": 16,
      "phaseOfEducation": "sample string 17",
      "religion": "sample string 18",
      "easting": 19.0,
      "northing": 20.0,
      "longitude": 21.0,
      "latitude": 22.0,
      "distanceInKM": 23.1,
      "distanceInMiles": 24.1
    },
    {
      "urn": 1,
      "establishmentName": "sample string 2",
      "street": "sample string 3",
      "locality": "sample string 4",
      "town": "sample string 5",
      "county": "sample string 6",
      "postcode": "sample string 7",
      "website": "sample string 8",
      "establishmentStatus": 9,
      "ofstedRating": "sample string 10",
      "genderID": 11,
      "statutoryLowAge": 12,
      "statutoryHighAge": 13,
      "capacity": 14,
      "numberOfPupils": 15,
      "establishmentTypeGroupID": 16,
      "phaseOfEducation": "sample string 17",
      "religion": "sample string 18",
      "easting": 19.0,
      "northing": 20.0,
      "longitude": 21.0,
      "latitude": 22.0,
      "distanceInKM": 23.1,
      "distanceInMiles": 24.1
    }
  ],
  "secondarySchools": [
    {
      "urn": 1,
      "establishmentName": "sample string 2",
      "street": "sample string 3",
      "locality": "sample string 4",
      "town": "sample string 5",
      "county": "sample string 6",
      "postcode": "sample string 7",
      "website": "sample string 8",
      "establishmentStatus": 9,
      "ofstedRating": "sample string 10",
      "genderID": 11,
      "statutoryLowAge": 12,
      "statutoryHighAge": 13,
      "capacity": 14,
      "numberOfPupils": 15,
      "establishmentTypeGroupID": 16,
      "phaseOfEducation": "sample string 17",
      "religion": "sample string 18",
      "easting": 19.0,
      "northing": 20.0,
      "longitude": 21.0,
      "latitude": 22.0,
      "distanceInKM": 23.1,
      "distanceInMiles": 24.1
    },
    {
      "urn": 1,
      "establishmentName": "sample string 2",
      "street": "sample string 3",
      "locality": "sample string 4",
      "town": "sample string 5",
      "county": "sample string 6",
      "postcode": "sample string 7",
      "website": "sample string 8",
      "establishmentStatus": 9,
      "ofstedRating": "sample string 10",
      "genderID": 11,
      "statutoryLowAge": 12,
      "statutoryHighAge": 13,
      "capacity": 14,
      "numberOfPupils": 15,
      "establishmentTypeGroupID": 16,
      "phaseOfEducation": "sample string 17",
      "religion": "sample string 18",
      "easting": 19.0,
      "northing": 20.0,
      "longitude": 21.0,
      "latitude": 22.0,
      "distanceInKM": 23.1,
      "distanceInMiles": 24.1
    }
  ]
}

application/xml, text/xml

Sample:
<Schools xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <PrimarySchools>
    <School>
      <URN>1</URN>
      <EstablishmentName>sample string 2</EstablishmentName>
      <Street>sample string 3</Street>
      <Locality>sample string 4</Locality>
      <Town>sample string 5</Town>
      <County>sample string 6</County>
      <Postcode>sample string 7</Postcode>
      <Website>sample string 8</Website>
      <EstablishmentStatus>9</EstablishmentStatus>
      <OfstedRating>sample string 10</OfstedRating>
      <GenderID>11</GenderID>
      <StatutoryLowAge>12</StatutoryLowAge>
      <StatutoryHighAge>13</StatutoryHighAge>
      <Capacity>14</Capacity>
      <NumberOfPupils>15</NumberOfPupils>
      <EstablishmentTypeGroupID>16</EstablishmentTypeGroupID>
      <PhaseOfEducation>sample string 17</PhaseOfEducation>
      <Religion>sample string 18</Religion>
      <Easting>19</Easting>
      <Northing>20</Northing>
      <Longitude>21</Longitude>
      <Latitude>22</Latitude>
      <DistanceInKM>23.1</DistanceInKM>
      <DistanceInMiles>24.1</DistanceInMiles>
    </School>
    <School>
      <URN>1</URN>
      <EstablishmentName>sample string 2</EstablishmentName>
      <Street>sample string 3</Street>
      <Locality>sample string 4</Locality>
      <Town>sample string 5</Town>
      <County>sample string 6</County>
      <Postcode>sample string 7</Postcode>
      <Website>sample string 8</Website>
      <EstablishmentStatus>9</EstablishmentStatus>
      <OfstedRating>sample string 10</OfstedRating>
      <GenderID>11</GenderID>
      <StatutoryLowAge>12</StatutoryLowAge>
      <StatutoryHighAge>13</StatutoryHighAge>
      <Capacity>14</Capacity>
      <NumberOfPupils>15</NumberOfPupils>
      <EstablishmentTypeGroupID>16</EstablishmentTypeGroupID>
      <PhaseOfEducation>sample string 17</PhaseOfEducation>
      <Religion>sample string 18</Religion>
      <Easting>19</Easting>
      <Northing>20</Northing>
      <Longitude>21</Longitude>
      <Latitude>22</Latitude>
      <DistanceInKM>23.1</DistanceInKM>
      <DistanceInMiles>24.1</DistanceInMiles>
    </School>
  </PrimarySchools>
  <SecondarySchools>
    <School>
      <URN>1</URN>
      <EstablishmentName>sample string 2</EstablishmentName>
      <Street>sample string 3</Street>
      <Locality>sample string 4</Locality>
      <Town>sample string 5</Town>
      <County>sample string 6</County>
      <Postcode>sample string 7</Postcode>
      <Website>sample string 8</Website>
      <EstablishmentStatus>9</EstablishmentStatus>
      <OfstedRating>sample string 10</OfstedRating>
      <GenderID>11</GenderID>
      <StatutoryLowAge>12</StatutoryLowAge>
      <StatutoryHighAge>13</StatutoryHighAge>
      <Capacity>14</Capacity>
      <NumberOfPupils>15</NumberOfPupils>
      <EstablishmentTypeGroupID>16</EstablishmentTypeGroupID>
      <PhaseOfEducation>sample string 17</PhaseOfEducation>
      <Religion>sample string 18</Religion>
      <Easting>19</Easting>
      <Northing>20</Northing>
      <Longitude>21</Longitude>
      <Latitude>22</Latitude>
      <DistanceInKM>23.1</DistanceInKM>
      <DistanceInMiles>24.1</DistanceInMiles>
    </School>
    <School>
      <URN>1</URN>
      <EstablishmentName>sample string 2</EstablishmentName>
      <Street>sample string 3</Street>
      <Locality>sample string 4</Locality>
      <Town>sample string 5</Town>
      <County>sample string 6</County>
      <Postcode>sample string 7</Postcode>
      <Website>sample string 8</Website>
      <EstablishmentStatus>9</EstablishmentStatus>
      <OfstedRating>sample string 10</OfstedRating>
      <GenderID>11</GenderID>
      <StatutoryLowAge>12</StatutoryLowAge>
      <StatutoryHighAge>13</StatutoryHighAge>
      <Capacity>14</Capacity>
      <NumberOfPupils>15</NumberOfPupils>
      <EstablishmentTypeGroupID>16</EstablishmentTypeGroupID>
      <PhaseOfEducation>sample string 17</PhaseOfEducation>
      <Religion>sample string 18</Religion>
      <Easting>19</Easting>
      <Northing>20</Northing>
      <Longitude>21</Longitude>
      <Latitude>22</Latitude>
      <DistanceInKM>23.1</DistanceInKM>
      <DistanceInMiles>24.1</DistanceInMiles>
    </School>
  </SecondarySchools>
</Schools>