photum/services/mockGeoService.ts
João Vitor 1caeddc72c feat: Initialize PhotumManager project structure
This commit sets up the foundational project structure for PhotumManager. It includes:
- Initializing a new React project with Vite.
- Configuring essential dependencies such as React, Lucide React, and the Google Generative AI SDK.
- Setting up TypeScript and Vite configurations for optimal development.
- Defining core application metadata and initial type definitions for users and events.
- Establishing basic styling and font configurations in `index.html` with Tailwind CSS.
- Adding a `.gitignore` file to manage project dependencies and build artifacts.
- Updating the README with instructions for local development.
2025-11-25 11:02:25 -03:00

33 lines
No EOL
757 B
TypeScript

// Simulates an API call to a Geocoding service
export const searchAddress = async (query: string) => {
await new Promise(resolve => setTimeout(resolve, 600)); // Network delay
if (!query) return [];
return [
{
street: query,
number: '',
city: 'São Paulo',
state: 'SP',
zip: '01000-000',
description: `${query}, São Paulo - SP, Brasil`
},
{
street: query,
number: '',
city: 'Rio de Janeiro',
state: 'RJ',
zip: '20000-000',
description: `${query}, Rio de Janeiro - RJ, Brasil`
},
{
street: query,
number: '',
city: 'Curitiba',
state: 'PR',
zip: '80000-000',
description: `${query}, Curitiba - PR, Brasil`
}
];
};