Skip to content

A library to mine data from the Google Maps Control for ASP.NET

License

Notifications You must be signed in to change notification settings

anas-ambri/GServiceMiner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GServiceMiner

A library to mine data from the Google Maps Control for ASP.NET

##Setup You need to have PhantomJS installed on your PATH.

##Usage var miner = new GServiceMiner("http://shuttle.concordia.ca/Map.aspx"); miner.on('data', function(data){ var points = data.points.map(function(point){ return { element : point.ID, longitude : point.Longitude, latitude : point.Latitude }; }); console.log( 'new data ='+JSON.stringify(points, null, 4) ); });

##Tests npm test

##API The library provides with an eventsEmitter that periodically emits the data collected from the Maps Control.

###GServiceMiner Exposed by require('gserviceminer')

###GServiceMiner(url: String) Creates a new eventsEmitter that mines the page at url for data

###GServiceMiner(url: String, opts: Object) The following options are supported by the constructor:

  • refresh: the period, in ms, at which the eventsEmitter should mine the page. Default is 1 minute

##How it works GServiceMiner uses phantom-node to create an instance of the target webpage, and extracts the information from it.

##Features For now, only Points (e.g., actual markers on the map) are retrieved from the GService.

About

A library to mine data from the Google Maps Control for ASP.NET

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published