close

  
<p> var title="bakerloo"

var query=[
  {
      "search": {"query": title, "score": null},
    "/common/topic/article": {
      "guid": null,
      "limit": 1,
      "optional": true
    },
    "/common/topic/image": {
      "id": null,
      "limit": 1,
      "optional": true
    },
    "/metropolitan_transit/transit_stop/transit_lines": [
      {
        "id": null,
        "name": null,
        "optional": true
      }
    ],
    "id": null,
    "limit": 1,
    "name": null,
   "sort": "-search.score",
    "type": "/base/underground/underground_station"
  }
]
  
  var result=acre.freebase.mqlread(query, {extended:true}).result;

console.log(result) </p>

Comments

Hide