Available Question Types

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:

QTypeMeaning
latlongWhere is it?
countHow 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?

Named Places

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.

  1. Enter the query below, which asks when the Guggenheim Museum is open. Note that we included New York City as the area, since there is also one in Bilbao.
  2. Check the resulting MRL and correct it if necessary. (Like before, use the MRL features form to adjust it and say “That’s correct!” when it is.)

When can we visit the Guggenheim Museum in New York City?

{% if completed %}

✔ Completed.

query(area(keyval('name','New York City')),nwr(keyval('name','Guggenheim Museum')),qtype(findkey('opening_hours')))

{% else %}

❌ Not completed yet.

{% endif %}