Skip to content

About

Location engines for Node.js implementation of the 51Degrees Pipeline API

Resources

Stars

0 stars

Watchers

3 watching

Forks

Repository files navigation

Important

This repo has been merged into the monorepo https://github.com/51Degrees/51degrees-node, under location/. Please refer to the new monorepository for issues and PRs. The npm package fiftyone.geolocation keeps its name and is published from there, from version 4.5.98.

51Degrees Geo-Location Engines

51Degrees Pipeline API

Developer Documentation

Introduction

This repository contains the geo-location engines for the Node.js implementation of the Pipeline API.

Pre-requesites

The Pipeline engines are written in Node.js and target 6 and above.

Packages

Installation

You can either reference the projects in this repository or you can reference the NPM packages in your project:

npm install fiftyone.geolocation

Make sure to select the latest version from NPM.

Examples

Examples can be found in the examples/ folder. See below for a list of examples.

Example Description Implemtation
gettingStarted.js This example uses geo-location to determine the country from a longitude and latitude. Cloud
combiningServices.js This example uses geo-location alongside device detection to determine the country and device. Cloud
configureFromFile.js This example shows how to configure pipeline with geo-location from a configuration file. Cloud
webIntegration.js This example demonstrates how to get location information from the device that a user is using to access a website. Cloud

Tests

In this repository, there are tests for the examples. You will need to install jest to run them:

npm install jest --global

To run the tests, then call:

jest

Project documentation

For complete documentation on the Pipeline API and associated engines, see the 51Degrees documentation site.

About

Location engines for Node.js implementation of the 51Degrees Pipeline API

Resources

Stars

0 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages