Estate & Letting Agents in Staple Hill and Mangotsfield, South Gloucestershire

Find Estate Agents in Staple Hill and Mangotsfield, South Gloucestershire
44 results
Franklin Cole Properties
1 active listing in Staple Hill and Mangotsfield, South Gloucestershire, West of England, England
26 total
548 Filton Avenue, Northville, Bristol, BS7 0QG
View Profile
Homely Bespoke Estate Agents

Covering Bristol

Sales
1 active listing in Staple Hill and Mangotsfield, South Gloucestershire, West of England, England
21 total
Bristol
View Profile
House + Co Property

Bristol

Lettings
1 active listing in Staple Hill and Mangotsfield, South Gloucestershire, West of England, England
18 total
191-193 Church Road, Redfield, Bristol, BS5 9HG
Hunters

Fishponds

Sales
1 active listing in Staple Hill and Mangotsfield, South Gloucestershire, West of England, England
61 total
764 Fishponds Road, Fishponds, Bristol, BS16 3UA
View Profile
Hybr

West London

Lettings
1 active listing in Staple Hill and Mangotsfield, South Gloucestershire, West of England, England
887 total
Covering West London
Jbs Bristol Lettings

Bristol

Lettings
1 active listing in Staple Hill and Mangotsfield, South Gloucestershire, West of England, England
19 total
91 Bishop Road Bishopston Bristol BS7 8LX
View Profile
Lettingaproperty.Com

Nationwide - Lettings

Lettings
1 active listing in Staple Hill and Mangotsfield, South Gloucestershire, West of England, England
104 total
7 Ardent Court William James Way Henley-In-Arden B95 5GF
View Profile
Lomond Investment Management
1 active listing in Staple Hill and Mangotsfield, South Gloucestershire, West of England, England
85 total
Lomond Investment Management The Senate Southernhay Gardens St. Leonards Exeter EX1 1UG
Love -Lettings Bristol LTD

Covering Bristol

Lettings
1 active listing in Staple Hill and Mangotsfield, South Gloucestershire, West of England, England
9 total
Bristol
Morgan & Sons

Bristol

Sales
1 active listing in Staple Hill and Mangotsfield, South Gloucestershire, West of England, England
15 total
439 Stapleton Road, Bristol, BS5 6NA
View Profile
New Home Agents
1 active listing in Staple Hill and Mangotsfield, South Gloucestershire, West of England, England
417 total
Unit 7, First Floor Hepton Court Leeds LS9 6PW
View Profile
Oak Estate Agents

Kingswood

Sales
1 active listing in Staple Hill and Mangotsfield, South Gloucestershire, West of England, England
44 total
31 High Street, Kingswood, Bristol BS15 4AA
View Profile
Openrent

London

Lettings
1 active listing in Staple Hill and Mangotsfield, South Gloucestershire, West of England, England
8,435 total
20 Wenlock Road, London, N1 7GU
View Profile
Taylors

Downend

Lettings
1 active listing in Staple Hill and Mangotsfield, South Gloucestershire, West of England, England
24 total
33 Badminton Road Bristol BS16 6BB
View Profile
Page 2 of 2
initializeAllPremierCards() }); // Load detailed stats function function loadDetailedStats() { const button = document.getElementById('load-more-stats'); const statsContainer = document.getElementById('detailed-stats'); if (statsContainer.classList.contains('hidden')) { // Show loading state button.innerHTML = ` Loading... `; // Make AJAX call for detailed stats const location = 'Staple Hill and Mangotsfield, South Gloucestershire'; const agentType = ''; fetch(`/api/agents/detailed-stats?location=${encodeURIComponent(location)}&type=${agentType}`) .then(response => response.json()) .then(data => { // Build detailed stats HTML let statsHtml = '
'; // Property types breakdown if (data.propertyTypes && Object.keys(data.propertyTypes).length > 0) { statsHtml += `
Property Types
`; for (const [type, count] of Object.entries(data.propertyTypes)) { const percentage = Math.round((count / data.totalProperties) * 100); statsHtml += `
${type}: ${count.toLocaleString()} (${percentage}%)
`; } statsHtml += '
'; } // Price ranges if (data.priceRanges) { statsHtml += `
Price Ranges
Avg Sale Price: £${data.priceRanges.avgSalePrice?.toLocaleString() || 'N/A'}
Avg Rent PCM: £${data.priceRanges.avgRentPrice?.toLocaleString() || 'N/A'}
`; } // Top performing agents if (data.topAgents && data.topAgents.length > 0) { statsHtml += `
Top Agents
`; data.topAgents.slice(0, 3).forEach(agent => { statsHtml += `
${agent.name}: ${agent.property_count} props
`; }); statsHtml += '
'; } statsHtml += '
'; // Show stats statsContainer.innerHTML = statsHtml; statsContainer.classList.remove('hidden'); // Update button button.innerHTML = ` Hide Insights `; }) .catch(error => { // If API fails, show some calculated stats from existing data const agents = [{"core_branch_id":51837,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Franklin Cole Properties","email":"enquiries@franklincole.co.uk","sales_phone_number":"0117 979 8700","address":"548 Filton Avenue,\r\nNorthville,\r\nBristol,\r\nBS7 0QG","postcode":"BS7 0QG","website_url":"http:\/\/www.franklincole.co.uk","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/51837\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:14:43.000000Z","updated_at":"2026-01-20T19:52:41.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":51837,"agent_company_id":3713,"branch_location":"Bristol","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E61000001B2D077AA88D04C0630B410E4AC04940","agent_brand_id":4405,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"548 Filton Avenue, Northville, Bristol","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Franklin Cole Properties","branch_name":"Bristol","lettings":false,"sales":true,"commercial":false,"h_email":"enquiries@franklincole.co.uk","has_email":true,"h_phone":"0117 979 8700","has_phone":true,"resolved_brand_color":"#e0bf6e","boundary_listing_count":"1","property_count":"26","latitude":51.50226,"longitude":-2.569169},{"core_branch_id":67176,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Homely Bespoke Estate Agents","email":"Liam@homelyproperties.co.uk","sales_phone_number":"03333 391250","address":"Bristol","postcode":null,"website_url":null,"description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/67176\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:23:06.000000Z","updated_at":"2025-12-09T23:22:13.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":67176,"agent_company_id":583,"branch_location":"Covering Bristol","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":null,"agent_brand_id":1049,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":null,"has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Homely Bespoke Estate Agents","branch_name":"Covering Bristol","lettings":false,"sales":true,"commercial":false,"h_email":"Liam@homelyproperties.co.uk","has_email":true,"h_phone":"03333 391250","has_phone":true,"resolved_brand_color":"#0f2d1e","boundary_listing_count":"1","property_count":"21","latitude":null,"longitude":null},{"core_branch_id":51825,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"House + Co Property","email":"leads@houseandco.uk","sales_phone_number":null,"address":"191-193 Church Road,\r\nRedfield,\r\nBristol,\r\nBS5 9HG","postcode":"BS5 9HG","website_url":"http:\/\/www.houseandco.co.uk","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/51825\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:14:43.000000Z","updated_at":"2026-01-20T19:55:55.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":51825,"agent_company_id":6523,"branch_location":"Bristol","lettings_phone_number":null,"is_sales":false,"is_lettings":true,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E61000005BEA20AF077304C0B2834A5CC7BA4940","agent_brand_id":7349,"offers_sales":false,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"191-193 Church Road, Redfield, Bristol","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"House + Co Property","branch_name":"Bristol","lettings":true,"sales":false,"commercial":false,"h_email":"leads@houseandco.uk","has_email":true,"h_phone":null,"has_phone":false,"resolved_brand_color":"#fe912b","boundary_listing_count":"1","property_count":"18","latitude":51.459209,"longitude":-2.556167},{"core_branch_id":51652,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Hunters","email":"huntersagency.hunters_fishponds@ptlp.co.uk","sales_phone_number":"0117 965 3162","address":"764 Fishponds Road,\r\nFishponds,\r\nBristol,\r\nBS16 3UA","postcode":"BS16 3UA","website_url":"http:\/\/www.hunters.com\/","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/51652\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:14:38.000000Z","updated_at":"2026-01-20T19:57:21.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":51652,"agent_company_id":98,"branch_location":"Fishponds","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000041C42959A3D04C061C3D32B65BD4940","agent_brand_id":290,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"764 Fishponds Road, Fishponds, Bristol","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Hunters","branch_name":"Fishponds","lettings":false,"sales":true,"commercial":false,"h_email":"huntersagency.hunters_fishponds@ptlp.co.uk","has_email":true,"h_phone":"0117 965 3162","has_phone":true,"resolved_brand_color":"#193273","boundary_listing_count":"1","property_count":"61","latitude":51.47965,"longitude":-2.53008},{"core_branch_id":67196,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Hybr","email":null,"sales_phone_number":null,"address":"Covering West London","postcode":null,"website_url":null,"description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/67196\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:23:07.000000Z","updated_at":"2025-12-09T23:22:19.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":67196,"agent_company_id":1876,"branch_location":"West London","lettings_phone_number":"020 3966 4594","is_sales":false,"is_lettings":true,"is_commercial":false,"is_hm_agent":false,"geopoint":null,"agent_brand_id":2472,"offers_sales":false,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":null,"has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Hybr","branch_name":"West London","lettings":true,"sales":false,"commercial":false,"h_email":null,"has_email":false,"h_phone":"020 3966 4594","has_phone":true,"resolved_brand_color":"#ec722f","boundary_listing_count":"1","property_count":"887","latitude":null,"longitude":null},{"core_branch_id":51850,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Jbs Bristol Lettings","email":"lettings@jbsbristol.co.uk","sales_phone_number":null,"address":"91 Bishop Road\r\nBishopston\r\nBristol\r\nBS7 8LX","postcode":"BS7 8LX","website_url":"https:\/\/www.jbsbristol.co.uk","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/51850\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:14:44.000000Z","updated_at":"2026-01-20T19:57:38.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":51850,"agent_company_id":3714,"branch_location":"Bristol","lettings_phone_number":"0117 911 2919","is_sales":false,"is_lettings":true,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000020F0C207CC804C0F65D11FC6FBD4940","agent_brand_id":4406,"offers_sales":false,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"91 Bishop Road, Bishopston, Bristol","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Jbs Bristol Lettings","branch_name":"Bristol","lettings":true,"sales":false,"commercial":false,"h_email":"lettings@jbsbristol.co.uk","has_email":true,"h_phone":"0117 911 2919","has_phone":true,"resolved_brand_color":"#1f2d42","boundary_listing_count":"1","property_count":"19","latitude":51.47998,"longitude":-2.597893},{"core_branch_id":50524,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Lettingaproperty.Com","email":"webenquiries@lettingaproperty.com","sales_phone_number":null,"address":"7 Ardent Court\r\nWilliam James Way\r\nHenley-In-Arden\r\nB95 5GF","postcode":"B95 5GF","website_url":"https:\/\/www.lettingaproperty.com","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/50524\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:14:01.000000Z","updated_at":"2026-01-20T20:01:20.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":50524,"agent_company_id":7773,"branch_location":"Nationwide - Lettings","lettings_phone_number":"0121 285 6320","is_sales":false,"is_lettings":true,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000213CDA38626DFCBF369204E10A264A40","agent_brand_id":8628,"offers_sales":false,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"7 Ardent Court, William James Way, Henley-In-Arden","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Lettingaproperty.Com","branch_name":"Nationwide - Lettings","lettings":true,"sales":false,"commercial":false,"h_email":"webenquiries@lettingaproperty.com","has_email":true,"h_phone":"0121 285 6320","has_phone":true,"resolved_brand_color":"#0e2d24","boundary_listing_count":"1","property_count":"104","latitude":52.297207,"longitude":-1.776705},{"core_branch_id":54882,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Lomond Investment Management","email":null,"sales_phone_number":null,"address":"Lomond Investment Management\r\nThe Senate\r\nSouthernhay Gardens\r\nSt. Leonards\r\nExeter\r\nEX1 1UG","postcode":"EX1 1UG","website_url":null,"description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/54882\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:16:23.000000Z","updated_at":"2026-01-20T19:58:19.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":54882,"agent_company_id":496,"branch_location":"Exeter","lettings_phone_number":"07720 164245","is_sales":false,"is_lettings":true,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E61000006891ED7C3F350CC023DBF97E6A5C4940","agent_brand_id":884,"offers_sales":false,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"Lomond Investment Management, The Senate, Southernhay Gardens, St. Leonards, Exeter","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Lomond Investment Management","branch_name":"Exeter","lettings":true,"sales":false,"commercial":false,"h_email":null,"has_email":false,"h_phone":"07720 164245","has_phone":true,"resolved_brand_color":"#828182","boundary_listing_count":"1","property_count":"85","latitude":50.722,"longitude":-3.526},{"core_branch_id":67297,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Love -Lettings Bristol LTD","email":null,"sales_phone_number":null,"address":"Bristol","postcode":null,"website_url":null,"description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/67297\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:23:10.000000Z","updated_at":"2025-12-09T23:22:46.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":67297,"agent_company_id":4604,"branch_location":"Covering Bristol","lettings_phone_number":"0117 244 9022","is_sales":false,"is_lettings":true,"is_commercial":false,"is_hm_agent":false,"geopoint":null,"agent_brand_id":5350,"offers_sales":false,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":null,"has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Love -Lettings Bristol LTD","branch_name":"Covering Bristol","lettings":true,"sales":false,"commercial":false,"h_email":null,"has_email":false,"h_phone":"0117 244 9022","has_phone":true,"resolved_brand_color":"#fff1dd","boundary_listing_count":"1","property_count":"9","latitude":null,"longitude":null},{"core_branch_id":51823,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Morgan \u0026 Sons","email":"benmorgan@morgan-sons.co.uk","sales_phone_number":"0117 952 0221","address":"439 Stapleton Road,\r\nBristol,\r\nBS5 6NA","postcode":"BS5 6NA","website_url":"http:\/\/www.morgan-sons.co.uk","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/51823\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:14:43.000000Z","updated_at":"2026-01-20T19:52:40.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":51823,"agent_company_id":6524,"branch_location":"Bristol","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E61000002C9D0FCF128404C0A04E797423BC4940","agent_brand_id":7350,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"439 Stapleton Road, Bristol","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Morgan \u0026 Sons","branch_name":"Bristol","lettings":false,"sales":true,"commercial":false,"h_email":"benmorgan@morgan-sons.co.uk","has_email":true,"h_phone":"0117 952 0221","has_phone":true,"resolved_brand_color":"#cfeffe","boundary_listing_count":"1","property_count":"15","latitude":51.469832,"longitude":-2.564489},{"core_branch_id":58070,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"New Home Agents","email":"sales@newhomesolutions.co.uk","sales_phone_number":"0113 322 5766","address":"Unit 7, First Floor \r\nHepton Court\r\nLeeds\r\nLS9 6PW ","postcode":"LS9 6PW","website_url":"http:\/\/www.smith-moore.co.uk","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/58070\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:18:09.000000Z","updated_at":"2026-01-20T19:54:56.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":58070,"agent_company_id":1781,"branch_location":"-","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E610000056D3F544D705F8BFD15CA79196E64A40","agent_brand_id":2371,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"Unit 7, First Floor, Hepton Court, Leeds","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"New Home Agents","branch_name":"-","lettings":false,"sales":true,"commercial":false,"h_email":"sales@newhomesolutions.co.uk","has_email":true,"h_phone":"0113 322 5766","has_phone":true,"resolved_brand_color":"#2e755d","boundary_listing_count":"1","property_count":"417","latitude":53.80147,"longitude":-1.501426},{"core_branch_id":51644,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Oak Estate Agents","email":"oakestateagents@googlemail.com","sales_phone_number":"0117 967 9102","address":"31 High Street,\r\nKingswood,\r\nBristol\r\nBS15 4AA ","postcode":"BS15 4AA","website_url":"http:\/\/www.oakestateagents.com","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/51644\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:14:37.000000Z","updated_at":"2026-01-20T19:52:39.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":51644,"agent_company_id":585,"branch_location":"Kingswood","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E610000066BFEE74E70904C07E00529B38BB4940","agent_brand_id":1051,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"31 High Street, Kingswood, Bristol","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Oak Estate Agents","branch_name":"Kingswood","lettings":false,"sales":true,"commercial":false,"h_email":"oakestateagents@googlemail.com","has_email":true,"h_phone":"0117 967 9102","has_phone":true,"resolved_brand_color":"#5e2360","boundary_listing_count":"1","property_count":"44","latitude":51.462665,"longitude":-2.504836},{"core_branch_id":58995,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Openrent","email":"zoopla@openrent.co.uk","sales_phone_number":null,"address":"20 \r\nWenlock Road, \r\nLondon, \r\nN1 7GU","postcode":"N1 7GU","website_url":"https:\/\/www.openrent.co.uk","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/58995\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:18:40.000000Z","updated_at":"2026-01-20T19:55:47.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":58995,"agent_company_id":7279,"branch_location":"London","lettings_phone_number":"020 3322 3265","is_sales":false,"is_lettings":true,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E61000003D7D04FEF0F3B7BFCEA5B8AAECC34940","agent_brand_id":8120,"offers_sales":false,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"20, Wenlock Road, London","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Openrent","branch_name":"London","lettings":true,"sales":false,"commercial":false,"h_email":"zoopla@openrent.co.uk","has_email":true,"h_phone":"020 3322 3265","has_phone":true,"resolved_brand_color":"#468cc8","boundary_listing_count":"1","property_count":"8435","latitude":51.53066,"longitude":-0.093566},{"core_branch_id":51656,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Taylors","email":"downend@alder-king.com","sales_phone_number":null,"address":"33 Badminton Road\r\nBristol\r\nBS16 6BB","postcode":"BS16 6BB","website_url":"https:\/\/www.taylorsestateagents.co.uk\/branch\/estate-agents\/downend","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/51656\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:14:38.000000Z","updated_at":"2026-01-20T19:59:01.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":51656,"agent_company_id":51,"branch_location":"Downend","lettings_phone_number":"0117 970 1910","is_sales":false,"is_lettings":true,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000F9A23D5E480704C0855B3E9292BE4940","agent_brand_id":189,"offers_sales":false,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"33 Badminton Road, Bristol","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Taylors","branch_name":"Downend","lettings":true,"sales":false,"commercial":false,"h_email":"downend@alder-king.com","has_email":true,"h_phone":"0117 970 1910","has_phone":true,"resolved_brand_color":"#e60431","boundary_listing_count":"1","property_count":"24","latitude":51.488848,"longitude":-2.503556}]; let topAgents = []; agents.forEach(agent => { // Collect top agents if (agent.property_count > 0) { topAgents.push({ name: agent.name, property_count: agent.property_count }); } }); // Sort top agents topAgents.sort((a, b) => b.property_count - a.property_count); let statsHtml = '
'; // Show top agents if (topAgents.length > 0) { statsHtml += `
Top Performing Agents
`; topAgents.slice(0, 5).forEach(agent => { statsHtml += `
${agent.name}: ${agent.property_count} properties
`; }); statsHtml += '
'; } statsHtml += '
'; statsContainer.innerHTML = statsHtml; statsContainer.classList.remove('hidden'); button.innerHTML = ` Hide Insights `; }); } else { // Hide stats statsContainer.classList.add('hidden'); button.innerHTML = ` Load Detailed Insights `; } } // Open agent map function function openAgentMap(locationSlug) { // Use the floating view toggle button const mapBtn = document.getElementById('agent-view-map'); if (mapBtn) { mapBtn.click(); } else { // Fallback to old button const oldMapBtn = document.getElementById('view-map-btn'); if (oldMapBtn) { oldMapBtn.click(); } else { // Last resort - open map page window.location.href = `/agents/${locationSlug}/map`; } } }