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

address-to-geocode

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

address-to-geocode

A test using node-geocode module

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

address-to-geocode

A test using node-geocode module

Installation

Run the following commands to download and install the application:

$ git clone https://github.com/IonicaBizau/address-to-geocode.git address-to-geocode
$ cd address-to-geocode
$ npm install

Example

// My Location
var myLocation = "New York";

// Handler to output data
var handler = function (err, location) {
    if (err) { throw err; }
    console.log(location);
};

require("../index")
    (myLocation, handler)
    ("Paris", handler)
  ;

Documentation

AddressToGeocode(address, callback)

Converts a string representing an address to geocode data.

Params:
  • String address The searched location
  • Function callback The callback function
Return:
  • Object AddressToGeocode function

AddressToGeocode.handleLocation(guess)

A function that handles the location. This can be overriden creating your own handler.

Params:
  • Array guess Locations returned by Geocoder
Return:
  • Object An object containing lat and lng fields.

How to contribute

  1. File an issue in the repository, using the bug tracker, describing the contribution you'd like to make. This will help us to get you started on the right foot.
  2. Fork the project in your account and create a new branch: your-great-feature.
  3. Commit your changes in that branch.
  4. Open a pull request, and reference the initial issue in the pull request message.

License

See the LICENSE file.

Keywords

FAQs

Package last updated on 15 Jul 2014

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