import type { FeatureCollection, Point } from "geojson"

import type { Amenities } from "@/types/hotel"
import type { GalleryImage } from "../imageGallery"

export interface DestinationMarker {
  id: string
  type: string
  name: string
  coordinates: google.maps.LatLngLiteral
  url: string
  tripadvisor: number | undefined
  amenities: Amenities
  image: GalleryImage
}

export type MarkerProperties = Omit<DestinationMarker, "coordinates">

export type MarkerGeojson = FeatureCollection<Point, MarkerProperties>
export type MarkerFeature = MarkerGeojson["features"][number]
