Germán Álvarez
Creating a routing app with Google Maps API from scratch
#1about 2 minutes
Overview of the three map applications to be built
A brief introduction to the three projects that will be created from scratch: a styled map, a geolocated map, and a route-planning application.
#2about 5 minutes
Setting up the basic HTML and script structure
Learn how to structure the HTML file, include the Google Maps API script with a key and callback function, and prepare the initial JavaScript setup.
#3about 9 minutes
Rendering a basic map with a marker and custom styles
Instantiate a basic map with a specific center and zoom level, add a marker to a location, and apply custom JSON styles for unique visual themes.
#4about 11 minutes
Using browser geolocation to center the map on the user
Access the user's location using the browser's `navigator.geolocation` API and dynamically update the map's center and add a marker to their current position.
#5about 22 minutes
Creating a complete route planning application
Build a routing feature by capturing user input for a destination, using geolocation for the origin, and leveraging the Directions Service and Directions Renderer to calculate and display the route on the map.
#6about 7 minutes
Q&A on API billing, local development, and best practices
A discussion covering the Google Maps API free tier, how usage is counted during local development, and important best practices like managing API keys in production.
Related jobs
Jobs that call for the skills explored in this talk.
Apaleo
München, Germany
Remote
€65-85K
Senior
JavaScript
.NET
+2
Matching moments
03:28 MIN
Shifting from talent acquisition to talent architecture
The Future of HR Lies in AND – Not in OR
06:10 MIN
Understanding global differences in work culture and motivation
The Future of HR Lies in AND – Not in OR
05:10 MIN
How the HR function has evolved over three decades
The Future of HR Lies in AND – Not in OR
04:22 MIN
Navigating ambiguity as a core HR competency
The Future of HR Lies in AND – Not in OR
06:59 MIN
Moving from 'or' to 'and' thinking in HR strategy
The Future of HR Lies in AND – Not in OR
06:51 MIN
Balancing business, technology, and people for holistic success
The Future of HR Lies in AND – Not in OR
03:13 MIN
How AI can create more human moments in HR
The Future of HR Lies in AND – Not in OR
06:04 MIN
The importance of a fighting spirit to avoid complacency
The Future of HR Lies in AND – Not in OR
Featured Partners
Related Videos
From Zero to Hero: NextJS 13 and Tailwind CSS for Beginners
Marius Obert
Meet Your New BFF: Backend to Frontend without the Duct Tape
Noam Honig
Snappy UI needs no Single-Page Application
Clemens Helm
Add Location-based Searching to Site with ElasticSearch
Derek Binkley
Building Apps With a Mixture of Code and No Code
Mark Piller
Practice makes perfect - when it comes to RxJS
Jan-Niklas Wortmann
100 million days in Vienna: A story of APIs & AI in tourism.
Thomas Reiter
Build Your Own Subscription-based Course Platform
Dávid Lévai
Related Articles
View all articles



From learning to earning
Jobs that call for the skills explored in this talk.


MARKT-PILOT GmbH
Stuttgart, Germany
Remote
€75-90K
Senior
Java
Angular
TypeScript


italki
Municipality of Vitoria-Gasteiz, Spain
Intermediate
CSS
HTML
React
WebPack
JavaScript
+1


Tech Solutions Gmbh
Berlin, Germany
API
CSS
GIT
HTML
Scrum
+5

Tech Solutions Gmbh
Brandenburg an der Havel, Germany
API
CSS
GIT
HTML
Scrum
+5


agap2 España
Municipality of Madrid, Spain
Intermediate
API
GIT
JIRA
Scrum
Figma
+6