Updated the API URL and implemented map data display

This commit is contained in:
2026-01-06 23:11:34 +05:30
parent 69f9d49cf1
commit 8c45659363

View File

@@ -119,12 +119,12 @@ const MapScreen: React.FC = () => {
setLoading(true); setLoading(true);
const response = await fetch( const response = await fetch(
'http://128.199.25.149:5000/property-search', 'http://64.227.108.180:5000/property-search',
{ {
method: 'POST', method: 'POST',
headers: { 'Content-Type': 'application/json' }, headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ body: JSON.stringify({
location: 'Lucknow, Uttar Pradesh, India', location: 'Teliarganj',
radius: 500, radius: 500,
}), }),
} }
@@ -214,7 +214,7 @@ const MapScreen: React.FC = () => {
/> />
<View style={styles.cardContent}> <View style={styles.cardContent}>
<Text style={styles.cardPrice}> <Text style={styles.cardPrice}>
{item.price_display} {item.price_display}
</Text> </Text>
<Text style={styles.cardDetails}> <Text style={styles.cardDetails}>
{item.bedrooms} Beds {item.bathrooms} Baths {item.bedrooms} Beds {item.bathrooms} Baths