Code Monkey home page Code Monkey logo

farcap-geocoder's Introduction

Farcap geocoder

This directory contains multiple JavaScript files which are all related to providing librarian services for geographic information.

Currently these are interacted with programmically, although command line tools could easily be derived.

CachingGeocoder

CachingGeocoder geo-codes location names: it maps from names to coordinates, returning Promises.

As the name implies it also maintains a cache of said Promises. Further, there is a mechanism for pre-fetching individual mappings, so that the cache can be pre-populated without network traffic, say, during app initiation i.e. the cache can be primed.

Note, using Google's terminology:

  • "geocoding" is mapping from names to coordinates
  • "reserve geocoding" is mapping location to name

OSM uses the same terminology.

At this time, CachingGeocoder does not do reverse geocoding.

CachingGeocoder is solely an in-memory thing. Issues of where (or even, if) persistence happens is a different issue.

CacheAssistant

This project does have such a cache persistance concerned thing: CacheAssistent (in CacheAssistent.js). CacheAssistant can initialize a CachingGeocoder with pre-fetched data read from a local file (or other data source) as well as serialize the cache at any moment.

CachingGeocoder is Observable. A CacheAssistant can observe a CachingGeocoder to get notified of when new info is in the cache. Deciding what to do with those notifications it not CachingGeocoders concern. A CacheAssistant might, say, wish to save to storage upon each new entry in a CachingGeocoder.

farcap-geocoder's People

Contributors

johntigue avatar

Watchers

 avatar James Cloos avatar

Forkers

modulitos

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.