ee20e03cc2
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
17 lines
406 B
TypeScript
17 lines
406 B
TypeScript
import { REVERSE_GEOCODE } from "@/graphql/address";
|
|
import { useLazyQuery } from "@vue/apollo-composable";
|
|
import { IAddress } from "@/types/address.model";
|
|
|
|
type reverseGeoCodeType = {
|
|
latitude: number;
|
|
longitude: number;
|
|
zoom: number;
|
|
locale: string;
|
|
};
|
|
|
|
export function useReverseGeocode() {
|
|
return useLazyQuery<{ reverseGeocode: IAddress[] }, reverseGeoCodeType>(
|
|
REVERSE_GEOCODE
|
|
);
|
|
}
|