Blog Archives

Google Maps with Polygon and Marker

Google Maps API allows drawing polygons on maps. This demo shows how to build a map with a polygon and a marker altogether. In the HTML page, add a div holding the map. In JavaScript, first provide the marker location

Tagged with:
Posted in Web

Generate Slug URL in MySQL

A slug is a short name using human-readable keywords to identify a web page. For example, in the following URL the slug is new-york-art-school. This post shows how to automatically generate slug using SQL in MySQL. Suppose we have a

Tagged with: ,
Posted in MySQL, Web

Embed Google Maps Image and Street View

Google Maps APIs provide easy ways to embed maps images. The following are static map image, satellite image and street view image of “Lincoln Memorial”. Static Maps API supports map images with custom styles, markers, satellite maps. The following is

Tagged with: ,
Posted in Web

Server-Side Geocoding and Caching

Google Maps API provides geocoding services to convert addresses (“Singapore 208539″) into geographic coordinates (1.311403, 103.85662). There are two approaches: Client-side geocoding, which uses JavaScript API to send requests and receive responses. HTTP server-side geocoding, which uses HTTP requests to

Tagged with: ,
Posted in Web