In the previous two queries, we asked for the number of things and for the location of things. In the MRL, the qtype (for question type) was count and latlong, respectively. Here is the full list of qtypes that NLMaps Web currently recognizes:
QType | Meaning |
---|---|
latlong | Where is it? |
count | How many are there? |
least(topx(1)) | Is there at least one? |
findkey('name') | What is its name? |
findkey('opening_hours') | When is it open? |
findkey('website') | What is its website? |
findkey('wheelchair') | Is it wheelchair-accessible? |
Instead of querying a class of things (like playgrounds), we can also ask for a named place. It is important that we get the place’s name right, because NLMaps Web will not correct your spelling of named things.
When can we visit the Guggenheim Museum in New York City?
✔ Completed.
query(area(keyval('name','New York City')),nwr(keyval('name','Guggenheim Museum')),qtype(findkey('opening_hours')))
❌ Not completed yet.
{% endif %}