Skip to content

arubhardwaj/JuliaMaps.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JuliaMaps

Build Status Build Status Coverage Coverage

** This package is under heavy construction **

Julia Maps is a package which can be used for geocoding in and plotting data on maps. The idea is to create something like ggmap for plotting maps in Julia.

Currently, it can only be used as a geocoding client for Google Maps API and Open Street Maps API. It is needed to have an API key for using this package, which can be requested from Google Cloud Console (for google maps) and from Maps Quest (for Open Streets Map).

For more information on requesting an API visit:

Installation

pkg> add https://github.com/arubhardwaj/JuliaMaps.jl

Usage

using JuliaMaps 
geocode("Address", "Api Key", "method")

Right now, JuliaMaps.jl supports only two methods: google and osm. google as method supports api from google maps, and osm supports api from Open Streets Map.

For example:

geocode("1600 Amphitheatre Parkway, Mountain View, CA", "API Key", "method")

For a vector, it'd be required to use broadcasting feature. For example:

geocode.(addresses, "API Key", "method")

geocode() will call the data from Google Maps API. For printing coordinates of longitudes and latitudes, execute geometry(geocode_output). Example:

geocode_output = geocode("1600 Amphitheatre Parkway, Mountain View, CA", "API Key", "method")

geometry(geocode_output)

It is also possible to print only longitudes and only latitudes using longitude(geocode_output) and latitude(geocode_output)

Credits

Thanks to @dzonimn for help.

About

A package I am hoping to complete!!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages