List of Places

"PlacesList" — a (RefLink[List, paclet:ref/List]) of rules with information on local businesses (restaurants, hotels, spas, salons, etc.) and points of interest (museums, airports, beaches, landmarks, etc.)

"PlacesDataset" — a (RefLink[Dataset, paclet:ref/Dataset]) of information on local businesses and points of interest

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Create a new connection:

factual=ServiceConnect["Factual"]

Get information about places:

results=factual["PlacesDataset",{"Location"->LinguisticAssistant,"Radius"->LinguisticAssistant,"Sort"->"Distance","Query"->"coffee"}];

results[All,{"Name","Address","Distance"}]

GeoListPlot[
Tooltip[#["Location"],Column[{#["Name"],#["HourDisplay"]}]]&/@results,GeoRangePadding -> (Quantity[200, "yd", yards, "Yards"])]

hours=(#->(#/.Flatten[results[2,"Hours"]//Normal]))&/@{"Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"};

TimelinePlot[hours[[All,2]],PlotLegends->hours[[All,1]],ImageSize->Medium]

Get information about places given a locality or a region:

results=factual["PlacesDataset","Locality"->LinguisticAssistant,"Query"->"Vegan and vegetarian food",MaxItems->5]

factual["PlacesDataset","Region"->(Entity["Illinois, United States", Entity["AdministrativeDivision",{"Illinois","UnitedStates"}], "Entity[\"AdministrativeDivision\", {\"Illinois\", \"UnitedStates\"}]", "administrative division"]),"Query"->"Vegan and vegetarian food",MaxItems->5]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[ServiceExecute, paclet:ref/ServiceExecute])  ▪  (RefLink[ServiceConnect, paclet:ref/ServiceConnect])}, {Related Service Connections:  (StringTypeLink[Yelp, paclet:ref/service/Yelp])}})}})