Socket
Socket
Sign inDemoInstall

google-maps-coordinate-parser

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    google-maps-coordinate-parser

Coordinates parser for Google Maps urls.


Version published
Maintainers
1
Install size
3.91 kB
Created

Readme

Source

google-maps-coordinate-parser Build Status

Simple parser that converts a Google Maps URL to a Coordinate object.

Install

λ npm install google-maps-coordinate-parser --save

Usage

var CoordParser = require('google-maps-coordinate-parser'),
    Coord;

Coord = CoordParser.parse('https://www.google.com/maps/place/Film+Center+Building+Corporation/@40.760054,-73.991054,17z/data=!3m1!4b1!4m2!3m1!1s0x89c25853c9cfe7d3:0x44137c808ab6c9c3');

console.log(Coord); // {latitude: 40.760054, longitude: -73.991054}
console.log(Coord.toString()); // '40.760054, -73.991054'

License

MIT © Rafael Rinaldi

Keywords

FAQs

Last updated on 07 Apr 2014

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc