BNN Api

<back to all web services

GetCloseJobs

Searches jobs near new job.

The following routes are available for this service:
POST/GetCloseJobs

To override the Content-type in your clients HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /jsv/reply/GetCloseJobs HTTP/1.1 
Host: api.dev.bnn.us 
Content-Type: text/jsv
Content-Length: length

{
	MyTZ: 0,
	County: String,
	State: String,
	Lat: 0,
	Lon: 0,
	Distance: 0,
	Minutes: 0,
	FireHazmat: 0,
	RescueTrauma: 0,
	PoliceCrime: 0,
	Traffic: 0,
	SmokeWater: 0,
	Weather: 0,
	ThirdAlarm: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Data: 
	[
		{
			Distance: String,
			Job: 
			{
				Id: 0,
				Deleted: False,
				Nominated: False,
				Filter: 0,
				National: False,
				International: False,
				JobID: 0,
				UniqueID: 0,
				UD: False,
				State: String,
				County: String,
				City: String,
				Address: String,
				IncidentType: 0,
				IncidentID: 0,
				FireHazmat: 0,
				RescueTrauma: 0,
				PoliceCrime: 0,
				Traffic: 0,
				SmokeWater: 0,
				Weather: 0,
				ThirdAlarm: 0,
				Incident: String,
				Story: String,
				Reporters: String,
				JobDate: String,
				LocalTime: String,
				TZ: 0,
				ZIP: String,
				Box: String,
				Lat: String,
				Lon: String,
				JobType: 0,
				Rating: 
				{
					Id: 0,
					Error: String,
					Votes: 0,
					Score: 0
				},
				Media: False,
				Escalation: 0,
				Fatality: False,
				Medivac: False,
				MCI: False,
				SeriousInjuries: False,
				Entrapment: False,
				Owner: String,
				Text: String,
				Next: 
				[
					{
						Id: 0,
						Deleted: False,
						Nominated: False,
						Filter: 0,
						National: False,
						International: False,
						JobID: 0,
						UniqueID: 0,
						UD: False,
						State: String,
						County: String,
						City: String,
						Address: String,
						IncidentType: 0,
						IncidentID: 0,
						FireHazmat: 0,
						RescueTrauma: 0,
						PoliceCrime: 0,
						Traffic: 0,
						SmokeWater: 0,
						Weather: 0,
						ThirdAlarm: 0,
						Incident: String,
						Story: String,
						Reporters: String,
						JobDate: String,
						LocalTime: String,
						TZ: 0,
						ZIP: String,
						Box: String,
						Lat: String,
						Lon: String,
						JobType: 0,
						Rating: 
						{
							Id: 0,
							Error: String,
							Votes: 0,
							Score: 0
						},
						Media: False,
						Escalation: 0,
						Fatality: False,
						Medivac: False,
						MCI: False,
						SeriousInjuries: False,
						Entrapment: False,
						Owner: String,
						Text: String,
						Next: 
						[
							{
								Id: 0,
								Deleted: False,
								Nominated: False,
								Filter: 0,
								National: False,
								International: False,
								JobID: 0,
								UniqueID: 0,
								UD: False,
								State: String,
								County: String,
								City: String,
								Address: String,
								IncidentType: 0,
								IncidentID: 0,
								FireHazmat: 0,
								RescueTrauma: 0,
								PoliceCrime: 0,
								Traffic: 0,
								SmokeWater: 0,
								Weather: 0,
								ThirdAlarm: 0,
								Incident: String,
								Story: String,
								Reporters: String,
								JobDate: String,
								LocalTime: String,
								TZ: 0,
								ZIP: String,
								Box: String,
								Lat: String,
								Lon: String,
								JobType: 0,
								Rating: 
								{
									Id: 0,
									Error: String,
									Votes: 0,
									Score: 0
								},
								Media: False,
								Escalation: 0,
								Fatality: False,
								Medivac: False,
								MCI: False,
								SeriousInjuries: False,
								Entrapment: False,
								Owner: String,
								Text: String,
								Next: 
								[
									{
										
									}
								]
							}
						]
					}
				]
			}
		}
	],
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String
			}
		]
	}
}