mapnests-node-sdk
Version:
TypeScript Node Supported SDK for Mapnests API integration (Distance Matrix, Distance Matrix Details, Geocode, Reverse Geocode)
37 lines (36 loc) • 735 B
TypeScript
export interface ReverseRequest {
Lat: number;
Lon: number;
}
export interface ReverseResponse {
data: ReverseData;
message: string;
status: boolean;
}
export interface ReverseData {
placeRank: number;
importance: number;
name: string;
addresstype: string;
lon: string;
lat: string;
category: string;
type: string;
displayName: string;
placeid: number;
address: Address;
}
export interface Address {
country: string;
countryCode: string;
city: string;
road: string;
stateDistrict: string;
iso31662Lvl4: string;
iso31662Lvl5: string;
municipality: string;
postcode: string;
suburb: string;
borough: string;
state: string;
}