qanary-component-sparql-generation/get-coordinates-from-address
This page is auto-generated from TSDoc output. Edit the source file, not this Markdown.
qanary-component-sparql-generation/get-coordinates-from-address
Section titled “qanary-component-sparql-generation/get-coordinates-from-address”- Package:
qanary-component-sparql-generation - Source file:
apps/qanary-component-sparql-generation/src/get-coordinates-from-address.ts
Summary
Section titled “Summary”Loads the cache from the JSON text file.
Functions
Section titled “Functions”loadCache
Section titled “loadCache”function loadCache(): Promise<Record<string, Coordinates>>Loads the cache from the JSON text file.
Returns
Promise<Record<string, Coordinates>>Defined at: line 29
saveCache
Section titled “saveCache”function saveCache(): voidSaves the memory cache back to the JSON text file.
Defined at: line 44
getCoordinatesFromAddress
Section titled “getCoordinatesFromAddress”function getCoordinatesFromAddress(address: string): Promise<Coordinates | null>Translates a street address to geographic coordinates (latitude, longitude) Includes a local JSON cache and a strict 1.1s rate limiter queue. *
Parameters
address(string): The street address to geocode ReturnsPromise<Coordinates | null>: Coordinates with latitude and longitude, or null if not found Defined at: line 59
Interfaces
Section titled “Interfaces”Coordinates
Section titled “Coordinates”interface CoordinatesProperties
latitude(number)longitude(number) Defined at: line 4
In qanary-component-sparql-generation
Section titled “In qanary-component-sparql-generation”qanary-component-sparql-generation/extract-coordinates-from-instancesqanary-component-sparql-generation/get-annotation-informationqanary-component-sparql-generation/get-coordinates-from-addressqanary-component-sparql-generation/get-enriched-instancesqanary-component-sparql-generation/get-predefined-sparqlqanary-component-sparql-generation/handlerqanary-component-sparql-generation/index