Skip to content

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

Loads the cache from the JSON text file.

function loadCache(): Promise<Record<string, Coordinates>>

Loads the cache from the JSON text file.

Returns

  • Promise<Record<string, Coordinates>> Defined at: line 29
function saveCache(): void

Saves the memory cache back to the JSON text file.

Defined at: line 44

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 Returns
  • Promise<Coordinates | null>: Coordinates with latitude and longitude, or null if not found Defined at: line 59
interface Coordinates

Properties

  • latitude (number)
  • longitude (number) Defined at: line 4