New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

csvgeocode

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

csvgeocode - npm Package Compare versions

Comparing version

to
0.0.5

2

package.json
{
"name": "csvgeocode",
"version": "0.0.4",
"version": "0.0.5",
"description": "Bulk geocode addresses in a CSV.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -205,6 +205,15 @@ csvgeocode

Writing your own could look something like this:
To use Mapbox instead, you should supply `"mapbox"` as the handler and a Mapbox API url with your API key, like:
```js
csvgeocode("input.csv","output.csv",{
url: "http://api.tiles.mapbox.com/v4/geocode/mapbox.places/{{a}}.json?access_token=MY_API_KEY",
handler: "mapbox"
});
```
Using a custom handler could look something like this:
```js
csvgeocode("input.csv","output.csv",{
url: "http://myspecialgeocoder.com?q={{a}}",

@@ -211,0 +220,0 @@ handler: mySpecialHandler

var geocode = require("../");
geocode("test.csv",{
delay: 10000,
url: "http://api.tiles.mapbox.com/v4/geocode/mapbox.places/{{a}}.json?access_token=pk.eyJ1IjoiamtlZWZlIiwiYSI6ImVCXzdvUGsifQ.5tFwEhRfLmH36EUxuvUQLA",
handler: "mapbox"

@@ -6,0 +6,0 @@ })