Updated the API URL and implemented map data display
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user