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

metacarta-geoparser

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metacarta-geoparser

  • 1.0.2
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

= metacarta-geoparser

Rubyforge Project:

http://rubyforge.org/projects/rctools

Documentation:

http://dev.robotcoop.com/Libraries/metacarta-geoparser

== About

metacarta-geoparser implements MetaCarta's GeoParser API:

http://labs.metacarta.com/GeoParser/documentation.html

== Installing metacarta-geoparser

Just install the gem:

$ sudo gem install metacarta-geoparser

== Using metacarta-geoparser

You can use either +locate+ or +locations+ to locate places:

+locate+ returns just one location, but includes a confidence estimate:

gp = MetaCartaGeoParser.new location = gp.locate 'baghdad' p location.coordinates p location.confidence

+locations+ returns a list of locations and a viewbox surrounding all of them.

gp = MetaCartaGeoParser.new locations, viewbox = gp.locations 'seattle' p locations.length p location.first.coordinates p viewbox

FAQs

Package last updated on 25 Jul 2009

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