Jump to content

Trade Area From GPS Coordinate Data Function for Spotfire® 1.1.0

1 Screenshot


TERR/R data function to get trade area for a given driving distance around given GPS coordinates.


Provide GPS coordinates to calculate trade area polygon for a given driving distance around it. Requires packages jsonlite, stringr. Written in R code. More details can be found here.


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...