"Factual" (Service Connection)

Connect to Factual using the Wolfram Language to get data on stores, restaurants, businesses, and other points of interest.

Connecting & Authenticating

ServiceConnect["Factual"] creates a connection to the Factual API.
Use of this connection requires an internet connection and a Factual API key.

Requests

ServiceExecute["Factual","request",params] sends a request to the Factual API, using parameters params. The following give possible requests.

List of Places

Requests:

"PlacesList" a List of rules with information on local businesses (restaurants, hotels, spas, salons, etc.) and points of interest (museums, airports, beaches, landmarks, etc.)

"PlacesDataset" a Dataset of information on local businesses and points of interest

Parameters:
  • "Query"(required)place names or other keywords to search for
    "Location"None
  • GeoPosition to search near
  • "Radius"Nonesearch radius in meters (only valid with "Location")
    "Region"NoneUS state to search within
    "Locality"NoneUS city to search near
    MaxItems10number of results to return per request
    "Sort""Distance"sorting order parameter (i.e. "Distance", "Name")
    "InterpretEntities"Falseuse Interpreter to find canonical Wolfram Language representations of cities, states, dates, etc.
  • Examples

    Basic Examples  (1)

    Create a new connection:

    In[1]:=
    Click for copyable input
    Out[1]=

    Get information about places:

    In[2]:=
    Click for copyable input
    In[3]:=
    Click for copyable input
    Out[3]=
    In[4]:=
    Click for copyable input
    Out[4]=
    In[5]:=
    Click for copyable input
    In[6]:=
    Click for copyable input
    Out[6]=

    Get information about places given a locality or a region:

    In[7]:=
    Click for copyable input
    Out[7]=
    In[8]:=
    Click for copyable input
    Out[8]=