Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@targomo/core

Package Overview
Dependencies
Maintainers
3
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@targomo/core

The JavaScript (& TypeScript) API for Targomo's time-based access mapping services.

  • 0.1.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2K
decreased by-40.96%
Maintainers
3
Weekly downloads
 
Created
Source

targomo-js

Note: This library is not yet finished and may be subject to breaking changes. Feel free to use it, though. If you are looking for our stable JS library please go this way.

The Targomo Typescript API is a modern, open-source, isomorphic TypeScript library designed to consume the Targomo services. The project is maintained by Targomo. The lib can also be used in non-typescript environments.

API Key

Get your free API key by signing up for a Targomo account

Regions

The Targomo API is available in many regions. For all available endpoints, see our availability map

Getting started

Usage in TypeScript/ES6 Environments

Install via npm (for client or server side use):

npm install @targomo/core
  1. Create and instance of TargomoClient with your API Key and region
import { TargomoClient } from '@targomo/core'
const tgmClient = new TargomoClient('<REGION>', '<API KEY>')
  1. Use the client. For example for requesting geojson travel time polygons:
const sources = [{ 
    lng: 13.3786431, 
    lat: 52.4668237, 
    id: 1
  }, {
    lng: 52.388166,
    lat: 13.120117,
    id: 2
  }]

const polygons = await tgmClient.polygons.fetch(sources, {
  travelType: 'walk',                   // Either 'walk', 'bike', 'car' or 'transit'
  travelEdgeWeights: [300, 600, 900],   // Array of distinct travel times in seconds
  serializer: 'geojson'               
})

TODO: High level documentation of all methods

Usage in ES5 Environments

TODO

Docs

Documentation is available at https://targomo.com/developers/guide/, although this still contains the documentation for the r360-js lib, until the docs are finished for this lib.

Keywords

FAQs

Package last updated on 13 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc