Jump to content

Trade Area From Address Data Function for Spotfire® 1.1.0

1 Screenshot


TERR data function to get trade area for a given driving distance.


Get the lat/long center of a given zip code, then calculate a trade area polygon for a given driving distance around it. Optionally input a street address for greater resolution. Written in R. Requires packages jsonlite, stringr, curl. More details can be found in this article.


Installing the data function

Follow the online guide available here to register a data function in Spotfire.


Configuring the data function

Each data function may require inputs from the Spotfire analysis and will return outputs to the Spotfire analysis. For each data function, these need to be configured once the data function is registered. To learn about how to configure data functions in Spotfire please view this video:

For more information on Spotfire visit the Spotfire training page.


Data function library

There exists a large number of data functions covering various features. Feel free to review what is available on the Data Function Library.

Release 1.1.0

Published: December 2023

Changes to previous release:

  • Slight improvements to the script with updated comments included
  • Sample DXP for data function has been added


Initial Release (version 1.0.0)

Published: January 2023

Initial release includes:

  • Data function
  • Documentation
  • License information

  • Create New...