Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)
WOLFRAM LANGUAGE SERVICE CONNECTION

Factual

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

Connecting & AuthenticatingConnecting & Authenticating

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

RequestsRequests

    ServiceExecute[conn,"request",params] sends a request to the connection identified by conn, 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.

ExamplesExamplesopen allclose all

Basic Examples  (1)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]=