Experiments with the Google Maps API
This repository contains a Google Maps browser application built primarily
with React. For a command-line interface, a simple Python 'shell' using the
geocoder package is provided. Additionally, a Python server allows the use of
geolocation from localhost.
- Node Package Manager:
npm - Python 3
- Clone this repository.
- Run
npm installfrom the repository's root folder. This will set up all the necessary Javascript dependencies viapackage.json. - Run
webpackfrom within the repository's root folder. This will bundle the various Javascript files intojavascripts/bundle.js. (Note that this bundle file is not included in the repository; it will be created by webpack.) - Finally, run
python3 -m http.serverto start the server.
- The browser interface can be accessed at
localhost:8000/index.htmlonce the server is running, assuming use of the default port. - The command-line interface can be accessed by running
python3 geocode_shell.pyfrom the repository's root folder.
- Simply open
index.htmlfor the browser interface. However, Chrome users will not be able to let the application access their locations without the server, since Chrome prevents geolocation from local files. - The command-line interface requires the server to be running.