Geocoder.jl

Julia package for geocoding using API from GoogleMaps and Open Street Maps
Author arubhardwaj
Popularity
2 Stars
Updated Last
3 Years Ago
Started In
June 2021

Geocoder

Geocoder.jl is a packag for geocoding. It is a part of JuliaMaps.jl. The idea of this project is to create something like ggmap for plotting maps in Julia.

Currently, Geocoder.jl 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 Geocoder

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 in writing and checkin the functions.

Used By Packages

No packages found.