GeoJSON Service Help

NAV Site

Location: /gis/scripts/NavSiteJSON.php

This script will create GeoJSON output using data from the ADDS database. This will extract a list of Navigation Aids from the database. Here is sample output:

{ "type": "FeatureCollection",
    "features": [
    { "type": "Feature",
	"properties": {
	    "id": "BET",
	    "type": "VORTAC",
	    "name": "BETHEL",
	    "state": "AK",
	    "country": "US",
	    "elev": "32"
	},
	"geometry": {
	    "type": "Point",
	    "coordinates": [-161.82,60.78]
	}
    },
    { "type": "Feature",
	"properties": {
	    "id": "BGQ",
	    "type": "VORTAC",
	    "name": "BIG LAKE",
	    "state": "AK",
	    "country": "US",
	    "elev": "49"
	},
	"geometry": {
	    "type": "Point",
	    "coordinates": [-149.97,61.57]
	}
    },

The properties output from the script are:

  • id - Navigation identifier
  • type - NavAid type: VORTAC, VOR/DME, VOR
  • name - The name for the site
  • state - State within country/region
  • country - Country
  • elev - Elevation of site in meters

The script can be passed parameters via command line or through CGI REQUEST. The parameters to the script include:

  • bbox=minlon,minlat,maxlon,maxlat - This is the bounding box for area of interest. This limits the stations output in GeoJSON to those within that lat/lon range. The default is -130,20,-60,60.
  • filter=prior - This tells the script to use a priority scheme to filter stations on a priority scheme. It will base what priority to use on the size of the bounding box. The priority is 3 for VORTAC, 4 for VOR/DME and 5 for VOR. The default is to only return stations with a priority of 2 or lower.
  • priority=# - This sets the default priority. The default is 3.
  • jsonp=callback - This sets the callback function to be used in a JSONP call. This is just when the script is called on another server. The default is null which outputs straight JSON.

Page loaded:  17:52 UTC  |   09:52 AM Pacific  |   10:52 AM Mountain  |   11:52 AM Central  |   12:52 PM Eastern

 

ADVISORIES

FORECASTS

FORECASTS

OBSERVATIONS

USER TOOLS

ABOUT US