Estate & Letting Agents in Chilton Foliat, Wiltshire

Find Estate Agents in Chilton Foliat, Wiltshire
2 results
Hamptons

Marlborough

Lettings Sales
1 active listing in Chilton Foliat, Wiltshire, England
84 total
20 High Street, Marlborough, SN8 1AA
View Profile
Jones Robinson

Lambourn

Lettings Sales
1 active listing in Chilton Foliat, Wiltshire, England
251 total
118 Bartholomew Street Newbury, RG14 5DT
View Profile
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 = 'Chilton Foliat, Wiltshire'; 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":63501,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Hamptons","email":"marlboroughlettings@hamptons-int.com","sales_phone_number":"01672 516256","address":"20 High Street,\r\nMarlborough,\r\nSN8 1AA","postcode":"SN8 1AA","website_url":"https:\/\/www.hamptons.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\/63501\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:21:05.000000Z","updated_at":"2026-01-20T20:00:39.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":63501,"agent_company_id":248,"branch_location":"Marlborough","lettings_phone_number":"01672 514877","is_sales":true,"is_lettings":true,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E61000009C1A683EE7AEFBBF45B9347EE1B54940","agent_brand_id":533,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"20 High Street, Marlborough","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Hamptons","branch_name":"Marlborough","lettings":true,"sales":true,"commercial":false,"h_email":"marlboroughlettings@hamptons-int.com","has_email":true,"h_phone":"01672 516256","has_phone":true,"resolved_brand_color":"#14294c","boundary_listing_count":"1","property_count":"84","latitude":51.420944,"longitude":-1.730201},{"core_branch_id":61776,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Jones Robinson","email":"paul.hodgson@jonesrobinson.co.uk","sales_phone_number":"01488 73337","address":"118 Bartholomew Street\r\nNewbury,\r\nRG14 5DT","postcode":"RG14 5DT","website_url":"http:\/\/www.jonesrobinson.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\/61776\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:20:10.000000Z","updated_at":"2026-02-06T16:13:23.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":61776,"agent_company_id":100289,"branch_location":"Lambourn","lettings_phone_number":"01635 581991","is_sales":true,"is_lettings":true,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E61000007AC5538F3438F5BF8E8F16670CB34940","agent_brand_id":10831,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"118 Bartholomew Street, Newbury","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Jones Robinson","branch_name":"Lambourn","lettings":true,"sales":true,"commercial":false,"h_email":"paul.hodgson@jonesrobinson.co.uk","has_email":true,"h_phone":"01488 73337","has_phone":true,"resolved_brand_color":"#01543e","boundary_listing_count":"1","property_count":"251","latitude":51.398816,"longitude":-1.326222}]; 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`; } } }