community
cancel
Showing results for 
Search instead for 
Did you mean: 

Location Data Knowledge Base

Data methodologies, and Release schedules.
Data Products 101   Part 3: Drivetimes   In Part 2 of my Data Products 101 series I covered giving context to our spatial data with Maps, but what if you’ve never worked with spatial data before? What does a typical spatial use case even look like? We’ll cover getting you started with spatial data and more using the Drivetime Data available with each Location Insights package in this article.   Before we dive in, have you installed your data yet? If not be sure to check out Part 1 of this series first.   Let's get started:   Taking Drivetimes for a Spin   So, what is Drivetime Data anyways? At a high level, it’s a catalog of road segments and their associated speed values. Alteryx has a few tools which can leverage this data to determine point-to-point drivetimes or how far can you drive in any direction from a point within a set interval of time (aka "isochrone"). The latter is especially useful for a very common use case in Alteryx – trade area analysis defined by a drivetime threshold rather than a fixed distance radius.   Let’s jump in and build our first trade area. I'll use US data from the Location or Business Insights package, but this example will work for any of the countries we offer Location Insights data for.   First, pull in a Map Input tool onto our canvas and select the TomTom US base map. Add a point to the map via the configuration option at the top left. This point will represent the store that our trade area will be built around.     Next, bring a Trade Area tool onto our canvas and connect it to the Map Input tool. We'll use the default selections for now, but I highly recommend checking out the Trade Area Tool Mastery article on the Community whether you’re new to the Trade Area tool or a seasoned spatial veteran. This tool is jam packed with features and the Tool Mastery article is a great deep dive.     A few things to note here:   The SpatialObj field will automatically configure since we only have one field containing spatial data. Be sure to select the correct field for your analysis if you have multiple spatial object fields.   By default, the Trade Area tool will be configured to build radius-based trade areas using miles as the unit.   Let’s leave the tool in the default configurations so that we can visually compare the differences between radius-based and drivetime-based trade areas. Go ahead and throw a Browse tool after the Trade Area and run the workflow.     As we can see, our trade area is a perfect circle with a radius of 5 miles. The point we see in the center of the circle is our store location that we created in the Map Input tool.   Let’s go back to our Trade Area tool and reconfigure it to create a drivetime-based trade area as pictured below.     You probably noticed a few things when applying these changes:   There are three different versions of drivetime data – Peak, OffPeak, and Night. OffPeak is the ‘medium traffic’ option, Peak is the ‘heavy traffic’ option, and Night is the ‘light traffic’ option.   We didn’t change the value for ‘Specific Value’. As you may have guessed based on the units – it’s no longer a 5-mile radius, or even a 5-mile drive distance, but rather a 5-minute drivetime. This means that the edge of our trade area will be the maximum distance you can drive in 5 minutes from the point we built our trade area around.     After rerunning our workflow – we can now see a trade area with a completely different shape. Every point within the green boundary of our trade area is 5 minutes or less drivetime from our store. You may notice that our trade area has “arms” that extend beyond the “body” of the trade area. This is due to some streets having better traffic flow (e.g. higher speed limits, less traffic stops, etc). You may also notice areas where the trade area doesn’t extend much into and this can be due to opposite (i.e. low speed limits and many traffic stops) or there may just not be roads present.   Using Drivetime Data to Drive your Analysis   Great, so now that we have our drivetime trade area – what do we do with it? Trade area analysis covers a gammut of topics; ranging from understanding current customers, analyzing the competition, identifying potential new customers, and much more. For our purposes – we’ll walk through a couple of simple customer analysis cases. However, the sky is the limit and here are a few use cases for Trade Area analysis to spark your imagination:   The Right Location for Healthcare Facilities Using Spatial Analytics for Retail Site Analysis Understanding Consumer Behavior with Mobile Device Location Analysis   A classic entry point to trade area analysis is answering the simple question of: “How many of my customers live within X miles/minutes of my store?” For this example – I’m going to explore how many of my customers live within 10 minutes of our store.   First, I load in my customer file which consists of a unique ‘CustomerID’, a ‘Centroid’ SpatialObject point which represents the customers address, ‘Weekly_Visits’ count, and ‘Visit_Spend’ amount.     In my example customer file, I already have a SpatialObject point representing the customers address. However, in many cases your customer file may only have an address. This is a perfect use case for the Geocoder which is included in every Location Insights package.   Next, I’m going to create a 10-minute trade area around our store.       Finally, we need to do a spatial join. This is going to use a tool that may be new to you – the Spatial Match tool. This tool has a variety of configuration options which the help documents cover in a great visual format. For our purposes – I’m going to connect our Customer data stream to the T input (Targets) and the Store trade area stream to the U input (Universe). I also need to make sure that the ‘SpatialObject_TradeArea’ is selected as my Spatial Object Field for the Universe input as this is our trade area and the ‘SpatialObject’ field is the point for our store. The final step is to set the join condition to ‘Where Target Within Universe’.     Now that we’ve configured our workflow, let’s throw a browse tool on the M output (Matched) and the U output (Unmatched) and run the workflow so that we can visually see our data.     These 24 red points are our customers that are within 10 minutes driving from our store.     And these 438 red points are all our customers who are outside our 10-minute trade area.   Going the Distance with your Analysis   Great – now we know that most of our customers live much further away than 10 minutes driving from our store – but we don’t know how far the furthest customer is. If we knew how far our furthest customer lived, then we would be able to create a trade are which encapsulates all our customers without extra bloat. So how can we accomplish this?   Another important tool which leverages the drivetime data is the Distance tool. As the name implies, the primary function of the Distance tool is to measure distance from point A to pint B – including drivetime and driving distance. We can use this tool, in combination with a few others, to figure out how far our furthest customer lives. First, we need to append our store location to our customer data. We will do this with an Append Fields tool. Hook the customer data stream to the S input (Source) of the Append Fields tool and the store data stream to the T input (Target). Also, be sure to set the option to allow all appends.     Next, we will configure a Distance tool. By default, ‘Output Distance’ will be selected. This option measures straight line distance, not driving distance. We want to de-select this option, and then select the ‘Output Drivetime & Distance to Destination Centroid’ option. We need to make sure that ‘TomTom US OffPeak – Most Recent Vintage’ is selected as our Dataset as this is the same dataset we are using to generate our trade areas.   I’m going to leave ‘Route Optimized by’ as ‘Time’ because we are creating drivetime-based trade areas. I’ll also leave ‘Allow Reverse Routing for Optimum Speed’ checked as this speeds up the run of the workflow and I’m not too concerned about incredibly precise results. I’m going to set ‘Maximum Minutes’ to 45 instead of keeping the default of 30. This is because I am familiar with the Denver metro area and I think that some of my points may fall further than 30 minutes, so I want to make sure that all results are included.     Finally, I am going to sort my data by DriveTime in Descending order because I want to know how far the furthest customer is, but also what the next few farthest customers are just in case the furthest is an outlier. Now let’s run the workflow and check out the results.     From these results, I can see that our furthest customers live almost 25 minutes away from our store. Therefore, I know that a drivetime-based trade area of 25 minutes should cover all our customers. Great, now what can I do with this information? Well, we have a count of weekly visits and spend per visit in our customer data – maybe there’s a correlation with drivetime distance.   Put a Ring on your Insights   Let’s revisit our initial trade area workflow and take advantage of one of the more hidden functionalities – trade area rings. I’m going to analyze customers based on the following drivetime distance brackets: 0 to 15 minutes, 15 to 20 minutes, and 20 to 25 minutes.   The way we configure a ring in the trade area tool is to specify the start and end values separated by a hyphen (e.g. 10-15). We can also specify multiple trade areas within a single tool by separating our unique values with a comma (e.g. 10,15). The ‘Specific Value’ that we need to use then is: ’15,15-20,20-25’.     Note that our initial value is just ‘15’ and not ‘0-15’. This is because our initial trade area ‘ring’ isn’t actually a ring, it’s just a polygon, therefore we don’t need to specify a starting distance of ‘0’.     Now that we have our customer points matched to our trade area rings, lets create an ‘Average Weekly Visits’ and an ‘Average Visit Spend’ field for each trade area ring.     Finally, let’s wrap it up by creating a ‘Total Weekly Spend’ value for each of our rings by using a formula tool.     Now let’s inspect the results.     As we can see above, the customers who live nearest to our store visit the most, spend the least per visit, but also spend the most overall. And the opposite holds true for our customers who live the furthest away. This is the type of spatial driven analysis which could help our marketing campaign better target our customers and drive better results.   Bonus Section   One of the most powerful features of trade areas in Alteryx is the ability to append demographic values to them. For those of you who have purchased the Business Insights package, you may have explored the demographic analysis tools, or at least you may have seen the names ‘Experian US’, ‘Experian Full US ACS’, and ‘US Census’ when installing your data. These are your demographic datasets and you can append any field from those datasets directly to your trade areas.   The most exciting part of this feature is that you can calculate demographics for the trade area itself, and not just for given geographies that fall within your trade area, like ZIP Codes (although you can append those too).   If you haven’t purchased the Business Insights package but would like to test out this powerful feature, you can download the ‘US CENSUS 2010 - FREE DATA’ package from the downloads and licensing portal under the ‘Data Packages’ section. Follow my installation guide in case you forget how to navigate the downloads page or the data installer.   Let’s go back to our multi-ring trade area and add in an additional trade area that covers the entire 25-minute area. This new trade area will serve as a baseline that we can compare our rings to. Our ‘Specific Value’ should now be: 15,15-20,20-25,25.     Next, we’re going to bring in a new tool - the Allocate Append tool - and connect it to our data stream. We’re going to select the US Census 2010 dataset as our dataset. We need to set the ‘Records Are:’ dropdown to ‘Custom Geographies’ and the ‘Spatial Field’ as our trade area field: ‘SpatialObject_TradeArea’.     Next, we are going to select our demographic variables. I’m going to select ‘Total Population’, ‘%Total Female’, and ‘% Hispanic or Latino’ as the demographic variables I’m interested in.     Finally, let’s review our results.     As we can see here, a marketing campaign which targets potential Hispanic/Latino costumers will be most effective in our 15-minute radius, and least effective in our 20 to 25-minute radius. A general marketing campaign would have the most reach in our 20 to 25-minute radius as that ring has the highest population. A marketing campaign which targets women consumers would have fairly equal effectiveness across our entire trade area as one which targets men.   Appending demographics to drivetimes is a popular and powerful way to leverage Location Insights with Business Insights. If you want to learn more about our demographic data and the Business Insights packages, then be sure to stay tuned for Part 4 of my Data Products 101 series – All Things Allocate.   Bonus Bonus   You may notice that my demographic fields have very descriptive field names, rather than a more coded field name that you will see when exploring our demographic datasets. This is because I used a simple trick to rename my fields using descriptions from the Allocate Metainfo tool. If you want to apply this process to your workflows, be sure to check out the Allocate Rename Fields Macro .
View full article
Data Products 101   Part 2: Maps   This article focuses on one key area of our Location Insights products – Maps. I'll use the US Location Insight product for this example, but all of our international Location Insight products are functionally the same unless I call it out specifically as a unique part of the US package.   FAQ   As a quick recap before I begin this article, let's cover two frequently asked questions:   What do the Location Insight packages include?   All Location Insight packages include: Satellite imagery maps (with optional road overlay) Detail rich street maps Drivetime data to generate custom trade areas and point-to-point calculations API-based Forward and Reverse Geocoding tools In addition to the above, Canada and the US include: CASS data for CASS certification and Address Standardization On premise, forward geocoding tools Rooftop and parcel centroid address point data In addition to the above, the US also includes: 2010 US Census data summarized to the Block Group ZIP+4 geocoder USGS maps   What countries does Alteryx have Location Insight products for (as of Q4 2018)?   The United States (which includes: American Samoa, Guam, Northern Mariana Islands, Puerto Rico, and the US Virgin Islands) Canada The United Kingdom and the Republic of Ireland Australia and New Zealand Brazil Europe (which includes: Andorra, Austria, Belgium, Croatia, Czechia, Denmark, Finland, France, Germany, Gibraltar, Hungary, Italy, Liechtenstein, Luxembourg, Monaco, the Netherlands, Norway, Poland, Portugal, San Marino, Slovakia, Slovenia, Spain, Sweden, Switzerland, the Vatican City, and some coverage of Western Russia)   Let's get started:   Using Alteryx Maps   In Part 1 we covered installing our Data Products – now let’s jump into actually using it.   First, let’s drag a Map Input tool onto our canvas and review what maps we have available to us by clicking the ‘Base Map’ drop down.     As we can see here, we have multiple maps at our disposal. Carto Positron and Dark Matter come pre-loaded with Alteryx and function well as a basic map for your data – but the TomTom and Digital Globe maps you get with the Location Insights packages bring more accuracy and a lot more utility.   Let’s examine a quick comparison below to understand the features of each Base Map.   TomTom US DigitalGlobe Aerials DigitalGlobe Aerials with Streets Carto (Positron)   As we can see above, there are some big differences between the 4 main Base Maps. TomTom US offers a feature rich visual in a familiar and modern styling that makes it easy to immediately distinguish map layers from one another. There’s no mistaking a park with a lake, or an interstate highway with an avenue. Details which could be critical when trying to analyze where your customers live. DigitalGlobe Aerials offers a pure satellite imagery map that makes it easy to pick out specific buildings or sight property lines between farms when manually creating spatial data. DigitalGlobe Aerials with Streets offers a hybrid between the TomTom map and the DigitalGlobe Aerials – literally. In fact, DigitalGlobe Aerials with Streets uses the very street data used within the TomTom map. The inclusion of street data can give geographic context which is often lacking in a pure satellite imagery map. Carto – our free map – offers similar features as the TomTom map that will help give context to your spatial data, but it doesn’t include as many layers as TomTom and it is not as easy to distinguish these layers from one another.   While the Map Input tool is useful for creating spatial data at the beginning of our analytical journey, it doesn’t help provide context to the data we are currently working with. Thankfully, the Browse tool has a built-in map function when working with spatial data.     All you have to do is select the ‘Map’ tab on the top left, then select your desired Base Map in the drop down. Now you can see your data visualized on one of our maps. Let’s pause and take a moment to reflect upon the fact that Maps are the OG in Visualytics.   Now we’ve seen how the Map Input tool can help start our analytical journey, and how maps within the browse tool provide context to the data we are working with - the last mapping tool in our toolkit we need to discuss is the Report Map tool.   Report Map is a powerful tool for visualizing your spatial data. It provides spatial context to the results at the end of your analytical journey. I highly recommend you check out the Tool Mastery article for it as well as the One Tool Sample found in the ‘Help’ menu in Alteryx.     As the Tool Mastery article provides plenty of context on how to configure the tool, I’ll point out that the TomTom base map within the Report Map tool allows users to customize individual geography layers. For example, your analysis is based near airports – the Report Map tool allows you to customize the appearance of the airport polygon layer and even other surrounding layers to show importance. Select the TomTom map in the Reference Base Map configuration to enable base layer customization.       You should now be equipped to use the Map portion of your Location Insights package. If you’re wondering where to start with diving deeper into spatial analytics then be sure to stay tuned for Part 3 of my Data Products 101 series - Drivetime Data.   Bonus Section   Let's circle back to an earlier point about the three main maps of the Location Insights packages – the "DigitalGlobe Aerials with Streets" map uses the exact same street network data as the TomTom map. You might be wondering how that works, so let's take a quick dive into how maps work in Alteryx.   There are two ways Alteryx creates maps – fetching map tiles from an API (Carto and DigitalGlobe Aerials use this method) and rendering spatial data with a .map file (TomTom uses this method). In a practical sense, the TomTom map consists of a file inventory of .yxdb's, and the styling, layering, and rendering of the data within those .yxdb's is orchestrated by a .map file. The DigitalGlobe Aerials with Streets map is actually a hybrid of the road network spatial data in select .yxdb’s rendered on top of the satellite imagery tiles from the API.   Why does this matter?   Location Insights customers can take advantage of the base .yxdb’s for use in their spatial analysis. Perhaps you’re interested in lake polygons.    These raw .yxdb’s can be found wherever you installed the Location Insights package. For instance, the files should be found in C:\Data_Install\AlteryxMap\TomTom_US_2018_Q4\Data if I installed the Q4 2018 US data to C:\Data_Install.   To make this even more convenient, our US Location Insights users have a TomTom Layer Extraction app included with their installation. Access it within Alteryx via:  Options > Run Analytical Apps > TomTom Layer Extraction App > Run     Configure the app to according to your needs – narrow down to which state geography(s) you want to extract from, then select the specific layer(s) you want data for, and finally select your output and if you want to merge the geographies.     Now you can integrate the spatial data for these layers directly into your workflow!   As mentioned previously, the styling, layering, and rendering of the spatial data within the .yxdb's is orchestrated by a .map file. Users can actually edit those .map files to make styling tweaks or add new elements. This process can be a bit tricky, especially for users without a GIS background. I won't dive into the process, but here is a  Community Article  that discusses .map file customization if you are interested.
View full article
This post pertains to any user that downloaded the US Spatial (Q4 2018) package from the Downloads & Licenses portal between the initial release on Wednesday, February 20th, and ~1:30pm EST on Friday, March 1st. You'll know that you have the outdated download package if you do not see 'TomTom US Q4 2018' on the 'Install' screen under the 'Drivetime Datasets' section.   The initial package did not contain the TomTom US Q4 2018 Drivetime data (Guzzler). Should users require the Q4 2018 US Drivetime data, they'll need to download the updated package and rerun the install. Fortunately only a portion of the install needs to be executed unless a Network Install was used. After downloading and extracting the updated package, you can upgrade the TomTom US Q4 2018 Drivetime data with the following steps (for local installation).   Run AlteryxDataInstall.exe and select 'None', then only select the Drivetime dataset. Uninstall TomTom US Q3 2018 if desired. Finish the installation as usual and be sure to restart Designer to refresh the list of available data sets. For customers that utilize the Network Installation process, the simplest approach would be to prepare a full network install in a new location, then ask users to uninstall the entire data package and re-register from the new location (as the registration process is quick to execute).   We apologize for the inconvenience. Please feel free to post questions below.   Jerad Rades Team Lead, Data Products
View full article
Labels