La quinta dennys relationship

Is "La Quinta" Spanish for "Next to Denny's"? - The DO Loop

Denny's is an American table service diner-style restaurant chain. It operates over 1, Denny's main offices were located in La Mirada, California, until . Denny's has also made efforts at improving its public relations image by . Jan 6, In John Reiser wrote a blog post that uses the Python language to scrape the web for the locations of La Quinta Inns and Denny's. In order to perform an analysis on the relationship between Denny's and La Quinta location, it is necessary to first identify all possible Denny's / La Quinta pairs.

The analysis is a straightforward extension of the nearest-neighbor techniques shown in article "Distances between observations in two groups.

Westerby Family: Holiday 2000, 1st Night, Denny's next to the La Quinta Inn

To help visualize the locations, the adjacent graph overlays the data on an outline of the lower states in the US. Click the graph to enlarge. In the graph, the La Quinta Inns are represented by blue circles and Denny's by a red cross. In the enlarged version you can see that many circles enclose a red cross, which indicates that the inn and restaurant are very close.

On the other hand, there are a few La Quinta locations that seem to be far away from any Denny's.

Homework 4 - La Quinta is Spanish for next to Denny’s

Montana, North Dakota, Louisiana, Kansas, Nevada, and southwest Texas are some geographic regions in which a blue circle is not close to a red cross. The distance to the nearest Denny's for each La Quinta Inn Imagine that a husband and wife are spending their retirement by crisscrossing the US. The wife wants to sleep each night at a La Quinta Inn.

la quinta dennys relationship

The husband wants to eat breakfast each morning at a Denny's restaurant. If they both get their wishes, how far will they need to travel to get breakfast each morning? I've previously written about how to compute the distance to the nearest neighbor between observations that are in different groups.

For these data, the La Quinta Inns form one group and the Denny's restaurants form a second group. For each of the hotels, you can find the distance to the nearest Denny's. The following table summarizes the distribution of distances, in kilometers: The table shows that the closest Denny 's is a mere 11 meters from the adjacent La Quinta Inn!

It seems that the data supports a modified version of Hedberg's joke: As long as the husband and wife stay at these inns, they will both be happy, well-rested, and well-fed!

Entrance portico, and Denny's - Picture of La Quinta Inn Galveston East Beach, Galveston

The scatter plot and map near the top of this article gives some indications about where these inns are located, but we can identify these inns more precisely. For the sake of the couple's marital bliss, let's enumerate the inns that are farthest from a Denny's. Instead, your task is to write code to scrape this data from the hotel listings page which conveniently includes a list and links to every La Quinta in the USA, Mexico, and Canada.

Your minimum scraped data set should include location name, address, phone number, fax number, latitude, and longitude. The addition of hotel amenities and details such as internet availability, swimming pools, number of rooms, floors, etc will be considered for extra credit. This data collection must be constructed in a reproducible fashion - all web pages being scraped should be cached locally and each analysis step should be self contained in a separate R script.

la quinta dennys relationship

You will also create a Makefile that will link your R scripts together. I have created a local cache of the La Quinta hotel listing page here which you can use as a basis of your scraping attempts. Your write up should include a discussion of your scraping approach.

For this scraping task it is ok to use the same approach used in the blog post and directly pull results from the Where2GetIt web API. We will discuss in class how to identify and work with this specific API.

Once again, any web page or API result used should be cached locally and all analyses should be in self contained R scripts connected by a single Makefile. This is left as an open ended exercise - there is not one correct approach. Note that this analysis depends on calculating the distance between two spatial locations on a sphere, as such using euclidean distances is not ok.