Finding coordinates for an address
Locating an address or place on the map has always been a tedious task, and the Google Maps JavaScript API eases this task with the geocoding service. Geocoding, in its simplest definition, is to associate geographic coordinates with the address information, be it only a street name, the detailed building number and zip code, or only a locality name.
By having the coordinates of your respective addresses, you can easily overlay them in your map applications.
In this recipe, you will succeed in entering your holiday places and addresses and then map them as markers on top of your base maps in your application.
Getting ready
This recipe will make use of the concepts related to adding vector layers, particularly markers, introduced in the Adding markers to maps recipe in Chapter 3, Adding Vector Layers. It is advised to go through this recipe to have a general understanding of vector layers and their properties.
How to do it…
You can locate your addresses by following...