Blog Archives

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

Parse JSON in Java

JSON stands for JavaScript Object Notation, and it is based on a subset of JavaScript. As a data-exchange format, it is widely used in web programming. Here we show how to parse JSON data in Java using the org.json library.

Tagged with: ,
Posted in Java

Store Locator using Java

We would like to write a program to find the closest store to an input address. The program is provided with a list of locations; it asks for an input address, and then outputs the closet store location. The dataset

Tagged with: , , , , ,
Posted in Java