gmc

google-maps-coordinate-parser

Coordinate parser for Google Maps urls.

Showing:

Popularity

Downloads/wk

23

GitHub Stars

4

Maintenance

Last Commit

7yrs ago

Contributors

0

Package

Dependencies

0

Size (min+gzip)

0.3KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100