close
Coordinate of Lambeth North tube station, London, UK: [51.4989177, -0.1121086]

 

Now let's create a grid of area candidates, equaly spaced, centered around city center and within ~6km from Lambeth North tube station. Our neighborhoods will be defined as circular areas with a radius of 300 meters, so our neighborhood centers will be 600 meters apart.

To accurately calculate distances we need to create our grid of locations in Cartesian 2D coordinate system which allows us to calculate distances in meters (not in latitude/longitude degrees). Then we'll project those coordinates back to latitude/longitude degrees to be shown on Folium map. So let's create functions to convert between WGS84 spherical coordinate system (latitude/longitude degrees) and UTM Cartesian coordinate system (X/Y coordinates in meters).

 

Let's create a hexagonal grid of cells: we offset every other row, and adjust vertical row spacing so that every cell center is equally distant from all it's neighbors.

364 candidate neighborhood centers generated.

 

Let's visualize the data we have so far: city center location and candidate neighborhood centers:

Exam09-01.png

OK, we now have the coordinates of centers of neighborhoods/areas to be evaluated, equally spaced (distance from every point to it's neighbors is exactly the same) and within ~6km from Lambeth North tube station.

Let's now use Google Maps API to get approximate addresses of those locations.

Reverse geocoding check
-----------------------
Address of [51.4989177, -0.1121086] is: Lambeth North Station, 110 Westminster Bridge Rd, South Bank, London SE1 7XG, UK

 

Foursquare

Now that we have our location candidates, let's use Foursquare API to get info on restaurants in each neighborhood.

We're interested in venues in 'food' category, but only those that are proper restaurants - coffe shops, pizza places, bakeries etc. are not direct competitors so we don't care about those. So we will include in out list only venues that have 'restaurant' in category name, and we'll make sure to detect and include all the subcategories of specific 'Chinese restaurant' category, as we need info on Chinese restaurants in the neighborhood.

Total number of restaurants: 2909
Total number of Chinese restaurants: 163
Percentage of Chinese restaurants: 5.60%
Average number of restaurants in neighborhood: 7.271978021978022

 

List of all restaurants
-----------------------
('4c2e38bf7d85a593eef553f3', 'Luanda Grill', 51.44742303467162, -0.12437808709929998, '256a Brixton Hill, Brixton, Greater London, SW2 1HF, United Kingdom', 304, False, -548184.3357480518, 5808903.871061945)
('4dcd81fcd22deadedd3acafc', 'Wing Fu', 51.445970117008564, -0.12436866760253906, '282 Brixton Hill (at Morrish Rd), Brixton, Greater London, SW2 1HT, United Kingdom', 279, True, -548217.5553274208, 5808743.506958647)
('4c8769706e65199c44f75c53', 'Ten Thanks', 51.4486955597945, -0.12050062020187428, '31 Upper Tulse Hill (Ostade Rd & Wimbart Rd), Brixton, Greater London, SW2 2SD, United Kingdom', 327, True, -547887.484229397, 5808987.73223665)
('4e287183a809ec0663ee4892', 'Umana Yana', 51.45043303563944, -0.10060129055622724, '294 Croxted Road, Herne Hill, Greater London, SE24 9DA, United Kingdom', 327, False, -546475.8092566801, 5808889.763127419)
('4d84fe1081fdb1f7bc4108c0', 'Rocca', 51.44923236432431, -0.08515756266426021, '75-79 Dulwich Village, Dulwich, Greater London, SE21 7BJ, United Kingdom', 181, False, -545439.5368921933, 5808532.879800605)
('4e66ccafc65be127eea697cb', 'Surma Curry House', 51.450528, -0.079358, 'Dulwich, Greater London, S E22, United Kingdom', 118, False, -545009.776879589, 5808591.534941786)
('4cc1e61f38aaa093dfd40262', 'Bombay Bicycle Club', 51.449664, -0.074881, 'Lordship lane, Camberwell, Greater London, United Kingdom', 332, False, -544721.346755112, 5808431.246874542)
('4be31054b02ec9b6d4774ec0', 'Curry Cabin', 51.451117, -0.070042, 'Lordship lane, East Dulwich, Greater London, United Kingdom', 165, False, -544354.1427618747, 5808521.257353644)
('4fcb80d8e4b00865ccd6d4c9', 'Oriental Star', 51.45192840689823, -0.06723108981546579, 'United Kingdom', 226, True, -544141.6054765151, 5808569.9569546105)
('506db71ee4b00eb58f69b364', 'Royal British Legion Dulwich', 51.454596, -0.069029, 'United Kingdom', 240, False, -544203.5395660708, 5808890.242570764)
...
Total: 2909

 

List of Chinese restaurants
---------------------------
('4dcd81fcd22deadedd3acafc', 'Wing Fu', 51.445970117008564, -0.12436866760253906, '282 Brixton Hill (at Morrish Rd), Brixton, Greater London, SW2 1HT, United Kingdom', 279, True, -548217.5553274208, 5808743.506958647)
('4c8769706e65199c44f75c53', 'Ten Thanks', 51.4486955597945, -0.12050062020187428, '31 Upper Tulse Hill (Ostade Rd & Wimbart Rd), Brixton, Greater London, SW2 2SD, United Kingdom', 327, True, -547887.484229397, 5808987.73223665)
('4fcb80d8e4b00865ccd6d4c9', 'Oriental Star', 51.45192840689823, -0.06723108981546579, 'United Kingdom', 226, True, -544141.6054765151, 5808569.9569546105)
('4ca66047931bb60cc0bc92e2', 'Mr Liu', 51.45538945768149, -0.07672434147241174, '58 Lordship Ln, East Dulwich, Greater London, S E22, United Kingdom', 139, True, -544715.329469735, 5809089.440604274)
('4ccb2f17c0378cfabb087d48', 'Silver Fish Bar', 51.466922221286296, -0.052050286383005434, '48 Gibbon Rd, Camberwell, Greater London, SE1 5 2, United Kingdom', 256, True, -542747.6757855524, 5810003.445119728)
('4fa44009e4b0cfe54c0e2cfb', 'Courtesan Dim Sum', 51.46115994755113, -0.11122012921135563, '69-73 Atlantic Rd, Brixton, Greater London, SW9 8PU, United Kingdom', 82, True, -546957.6561985367, 5810227.206030627)
('5884c87b8d8e99297680cce0', 'Duck Duck Goose', 51.462715, -0.112497, 'Pop Brixton (49 Brixton Station Road), London, SW9 8PQ, United Kingdom', 170, True, -547009.390986866, 5810417.27708085)
('56994b03498e09226e6d2bd1', 'Mr Bao', 51.465824, -0.065894, '293 Rye Ln, London, Greater London, SE15 4UA, United Kingdom', 326, True, -543726.7918829196, 5810083.044752231)
('4e3d2b52483b04e17a91da46', 'Lovely House', 51.46789189338897, -0.07241128097607828, '119 Bellenden Road, Camberwell, Greater London, United Kingdom', 179, True, -544127.6882852758, 5810405.659747191)
('57433804498e6896a9ac6c3d', 'On Cafe', 51.461159936690485, -0.13606309890747068, '31 Clapham Park Road, SW4 7EE, United Kingdom', 217, True, -548669.0347714156, 5810589.009541841)
...
Total: 163

 

Restaurants around location
---------------------------
Restaurants around location 101: Pho Ta
Restaurants around location 102: 
Restaurants around location 103: Hot Stuff, The Three Lions, Bar Estrela, Grelha D'Ouro, Cafe Portugal
Restaurants around location 104: The Village Restaurante
Restaurants around location 105: Adulis, SW9 Sushi Bar, Sun Kong, Spring Way, Oval Tandoori
Restaurants around location 106: Zest of India
Restaurants around location 107: Bayroot, La Luna
Restaurants around location 108: 
Restaurants around location 109: 
Restaurants around location 110: 

 

Let's now see all the collected restaurants in our area of interest on map, and let's also show Chinese restaurants in different color.

Exam09-02.png

Looking good. So now we have all the restaurants in area within few kilometers from Lambeth North tube station, and we know which ones are Chinese restaurants! We also know which restaurants exactly are in vicinity of every neighborhood candidate center.

This concludes the data gathering phase - we're now ready to use this data for analysis to produce the report on optimal locations for a new Chinese restaurant!

 

OK, now let's calculate the distance to nearest Chinese restaurant from every area candidate center (not only those within 300m - we want distance to closest one, regardless of how distant it is).

Exam09-04.png

Average distance to closest Chinese restaurant from each area center: 500.6189653717583

OK, so on average Chinese restaurant can be found within ~500m from every area center candidate. That's fairly close, so we need to filter our areas carefully!

 

Let's crete a map showing heatmap / density of restaurants and try to extract some meaningfull info from that. Also, let's show borders of Lodon boroughs on our map and a few circles indicating distance of 1km, 2km and 3km from Lambeth North tube station.

Exam09-05.png

Looks like a few pockets of low restaurant density closest to city center can be found south, south-east and east from Lodon center.

Let's create another heatmap map showing heatmap/density of Chinese restaurants only.

Exam09-06.png

This map is not so 'hot' (Chinese restaurants represent a subset of ~15% of all restaurants in Lodon) but it also indicates higher density of existing Chinese restaurants directly north and west from Sydney Tower, with closest pockets of low Chinese restaurant density positioned east, south-east and south from city center.

Based on this we will now focus our analysis on areas south-west, south, south-east and east from Lodon center - we will move the center of our area of interest and reduce it's size to have a radius of 2.5km. This places our location candidates mostly in boroughs Walworth and Kennington.

 

Walworth and Kennington

Analysis of popular travel guides and web sites often mention Walworth and Kennington as beautifull, interesting, rich with culture, 'hip' and 'cool' Lodon neighborhoods popular with tourists and loved by Lodoners.

"Walworth has long been revered for its diverse cultural life and as a part of Lodon where alternative lifestyles have flourished. Envisioning the glamorous yet gritty nature of Lodon often conjures up scenes from this neighbourhood, where cultures, movements and artistic flare adorn the walls of building and fills the air. Brimming with nightclubs, street food, and art galleries, Walworth is the place to be for Lodon’s young and trendy." (theculturetrip.com)

"As anyone from Walworth will tell you, this district is not just the coolest in Lodon, but the hippest location in the entire universe. Walworth has long been famed for its diverse cultural life, its experimental alternative lifestyles and the powerful spell it exercises on young people from across Germany. In 2001, Walworth and Kennington were merged to form one administrative borough. When it comes to club culture, Kennington is now out in front – with southern Kennington particularly ranked as home to the highest density of clubs in the city."

Popular with tourists, alternative and bohemian but booming and trendy, relatively close to city center and well connected, those boroughs appear to justify further analysis.

Let's define new, more narrow region of interest, which will include low-restaurant-count parts of Walworth and Kennington closest to Lambeth North tube station.

Exam09-07.png

Not bad - this nicely covers all the pockets of low restaurant density in Walworth and Kennington closest to Lodon center.

Let's also create new, more dense grid of location candidates restricted to our new region of interest (let's make our location candidates 100m appart).

2261 candidate neighborhood centers generated.

 

OK. Now let's calculate two most important things for each location candidate: number of restaurants in vicinity (we'll use radius of 250 meters) and distance to closest Chinese restaurant.

Exam09-08.png

OK. Let us now filter those locations: we're interested only in locations with no more than two restaurants in radius of 250 meters, and no Chinese restaurants in radius of 400 meters.

Locations with no more than two restaurants nearby: 1429
Locations with no Chinese restaurants within 400m: 1152
Locations with both conditions met: 852

 

Let's see how this looks on a map.

Exam09-09.png

Looking good. We now have a bunch of locations fairly close to Lambeth North tube station (mostly in Walworth and Kennington), and we know that each of those locations has no more than two restaurants in radius of 250m, and no Chinese restaurant closer than 400m. Any of those locations is a potential candidate for a new Chinese restaurant, at least based on nearby competition.

 

Let's now show those good locations in a form of heatmap:

Exam09-10.png

Looking good. What we have now is a clear indication of zones with low number of restaurants in vicinity, and no Chinese restaurants at all nearby.

 

Let us now cluster those locations to create centers of zones containing good locations. Those zones, their centers and addresses will be the final result of our analysis.

Exam09-11.png

Not bad - our clusters represent groupings of most of the candidate locations and cluster centers are placed nicely in the middle of the zones 'rich' with location candidates.

Addresses of those cluster centers will be a good starting point for exploring the neighborhoods to find the best possible location based on neighborhood specifics.

 

 

 

 

 

 

 

 

 

 

 

 

Finaly, let's reverse geocode those candidate area centers to get the addresses which can be presented to stakeholders.

==============================================================
Addresses of centers of areas recommended for further analysis
==============================================================
63 Claylands Rd, London SW8 1PJ                    => 2.0km from Lambeth North Tube Station
Burgess Park detras de Canchas Sintetica, 7QH, Albany Rd, London, United Kingdom => 2.8km from Lambeth North Tube Station
King George IV Court, 153 East St, London SE17 2SB => 1.9km from Lambeth North Tube Station
189 Clapham Rd, London SW9 0QE                     => 2.9km from Lambeth North Tube Station
113 Camberwell Rd, London SE5 0DH                  => 2.4km from Lambeth North Tube Station
9 Ponton Rd, London SW8 5BA                        => 2.4km from Lambeth North Tube Station
51 Westcott Rd, London SE17 3QY                    => 1.6km from Lambeth North Tube Station
1 Bessborough Gardens, Westminster, London SW1V 2JQ => 1.7km from Lambeth North Tube Station
19 Spa Rd, London SE16 3SA                         => 2.7km from Lambeth North Tube Station
22 Northway Rd, Brixton, London SE5 9AN            => 3.8km from Lambeth North Tube Station
21 Oswyth Rd, Camberwell, London SE5 8NH           => 3.8km from Lambeth North Tube Station
73 Lambeth Walk, Lambeth, London SE11 6DX          => 0.5km from Lambeth North Tube Station
Hope Court, Fortune Pl, London SE1 5JP             => 3.2km from Lambeth North Tube Station
6 Bath Terrace, London SE1 6QE                     => 1.2km from Lambeth North Tube Station
14 St Lawrence Way, Myatts Field South, London SW9 6NP => 3.1km from Lambeth North Tube Station

This concludes our analysis. We have created 15 addresses representing centers of zones containing locations with low number of restaurants and no Chinese restaurants nearby, all zones being fairly close to city center (all less than 4km from Lambeth North tube station, and about half of those less than 2km from Lambeth North tube station). Although zones are shown on map with a radius of ~500 meters (green circles), their shape is actually very irregular and their centers/addresses should be considered only as a starting point for exploring area neighborhoods in search for potential restaurant locations. Most of the zones are located in Walworth and Kennington boroughs, which we have identified as interesting due to being popular with tourists, fairly close to city center and well connected by public transport.

Exam09-12.png

 

 

 

 

arrow
arrow
    全站熱搜

    alovec8888 發表在 痞客邦 留言(0) 人氣()