fiftyone.geolocation 4.4.47 → 4.4.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -8
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -13,8 +13,8 @@ This repository contains the geo-location engines for the Node.js implementation
|
|
|
13
13
|
The Pipeline engines are written in Node.js and target 6 and above.
|
|
14
14
|
|
|
15
15
|
## Packages
|
|
16
|
-
- **geoLocationCloud** - A Node.js engine which retrieves geo-location results by consuming data from the 51Degrees cloud service.
|
|
17
|
-
- **geoLocationPipelineBuilder** - Contains the geo-location engine builders.
|
|
16
|
+
- [**geoLocationCloud**](/geoLocationCloud.js) - A Node.js engine which retrieves geo-location results by consuming data from the 51Degrees cloud service.
|
|
17
|
+
- [**geoLocationPipelineBuilder**](/geoLocationPipelineBuilder.js) - Contains the geo-location engine builders.
|
|
18
18
|
|
|
19
19
|
## Installation
|
|
20
20
|
|
|
@@ -32,21 +32,25 @@ Examples can be found in the `examples/` folder. See below for a list of example
|
|
|
32
32
|
|
|
33
33
|
|Example|Description|Implemtation|
|
|
34
34
|
|-------|-----------|------------|
|
|
35
|
-
|gettingStarted.js|This example uses geo-location to determine the country from a longitude and latitude.|Cloud|
|
|
36
|
-
|combiningServices.js|This example uses geo-location alongside device detection to determine the country and device.|Cloud|
|
|
37
|
-
|configureFromFile.js|This example shows how to configure pipeline with geo-location from a configuration file.|Cloud|
|
|
38
|
-
|webIntegration.js|This example demonstrates how to get location information from the device that a user is using to access a website.|Cloud|
|
|
35
|
+
|[gettingStarted.js](/examples/gettingStarted.js)|This example uses geo-location to determine the country from a longitude and latitude.|Cloud|
|
|
36
|
+
|[combiningServices.js](/examples/combiningServices.js)|This example uses geo-location alongside device detection to determine the country and device.|Cloud|
|
|
37
|
+
|[configureFromFile.js](/examples/configureFromFile.js)|This example shows how to configure pipeline with geo-location from a configuration file.|Cloud|
|
|
38
|
+
|[webIntegration.js](/examples/webIntegration.js)|This example demonstrates how to get location information from the device that a user is using to access a website.|Cloud|
|
|
39
39
|
|
|
40
40
|
## Tests
|
|
41
41
|
|
|
42
42
|
In this repository, there are tests for the examples.
|
|
43
43
|
You will need to install jest to run them:
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
```
|
|
46
|
+
npm install jest --global
|
|
47
|
+
```
|
|
46
48
|
|
|
47
49
|
To run the tests, then call:
|
|
48
50
|
|
|
49
|
-
|
|
51
|
+
```
|
|
52
|
+
jest
|
|
53
|
+
```
|
|
50
54
|
|
|
51
55
|
## Project documentation
|
|
52
56
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fiftyone.geolocation",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.48",
|
|
4
4
|
"description": "Perform reverse geocoding using longitude and latitude to populate postal addresses",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"51Degrees",
|
|
@@ -21,6 +21,10 @@
|
|
|
21
21
|
"tsc": "tsc -b --force"
|
|
22
22
|
},
|
|
23
23
|
"author": "51Degrees Engineering <engineering@51degrees.com>",
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "https://github.com/51Degrees/location-node"
|
|
27
|
+
},
|
|
24
28
|
"dependencies": {
|
|
25
29
|
"fiftyone.pipeline.cloudrequestengine": "4.4.x",
|
|
26
30
|
"fiftyone.pipeline.core": "4.4.x",
|