Compare How Vegan-Friendly Two Cities Are
Connect to the Factual API to get information about locations.
In[1]:=
factual = ServiceConnect["Factual"]
Out[1]=
Look for vegan and vegetarian food locations in two cities.
In[2]:=
resultsSeattle =
factual["PlacesDataset",
"Locality" ->
Entity["City", {"Seattle", "Washington", "UnitedStates"}],
"Query" -> "Vegan and vegetarian food", MaxItems -> 300];
resultsHonolulu =
factual["PlacesDataset",
"Locality" ->
Entity["City", {"Honolulu", "Hawaii", "UnitedStates"}],
"Query" -> "Vegan and vegetarian food", MaxItems -> 300];
Get the number of locations and density.
show complete Wolfram Language input
Out[3]=