GeoJSON Service Help

FIX Site

Location: /cgi-bin/json/FixSiteJSON.php

This script will create GeoJSON output using data from the NASR database. This will extract a list of navigational fixes from the database. Here is sample output:

{ "type": "FeatureCollection",
    "features": [
    { "type": "Feature",
      "id": "478",
      "properties": {
          "data": "FIXES",
          "id": "AGENT",
          "type": "H"
      },
      "geometry": {
          "type": "Point",
          "coordinates": [-94.906,39.611]
      } 
    },
    { "type": "Feature",
      "id": "2848",
      "properties": {
          "data": "FIXES",
          "id": "BACNN",
          "type": "H"
      },
      "geometry": {
          "type": "Point",
          "coordinates": [-94.297,40.173]
      } 
    },
    { "type": "Feature",
      "id": "4139",
      "properties": {
          "data": "FIXES",
...

The properties output from the script are:

  • id - Fix identifier
  • type - Fix type: H (high level), L (low level)

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.
  • 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.