feat: import places from Google Maps URLs — closes #141
Paste a Google Maps URL into the place search bar to automatically import name, coordinates, and address. No API key required. Supported URL formats: - Short URLs: maps.app.goo.gl/..., goo.gl/maps/... - Full URLs: google.com/maps/place/.../@lat,lng - Data params: !3dlat!4dlng embedded coordinates Server resolves short URL redirects and extracts coordinates. Reverse geocoding via Nominatim provides name and address.
This commit is contained in:
@@ -179,6 +179,7 @@ export const mapsApi = {
|
||||
details: (placeId: string, lang?: string) => apiClient.get(`/maps/details/${encodeURIComponent(placeId)}`, { params: { lang } }).then(r => r.data),
|
||||
placePhoto: (placeId: string, lat?: number, lng?: number, name?: string) => apiClient.get(`/maps/place-photo/${encodeURIComponent(placeId)}`, { params: { lat, lng, name } }).then(r => r.data),
|
||||
reverse: (lat: number, lng: number, lang?: string) => apiClient.get('/maps/reverse', { params: { lat, lng, lang } }).then(r => r.data),
|
||||
resolveUrl: (url: string) => apiClient.post('/maps/resolve-url', { url }).then(r => r.data),
|
||||
}
|
||||
|
||||
export const budgetApi = {
|
||||
|
||||
Reference in New Issue
Block a user