How renaudcerrato/static-maps-api works
This repository provides a fluent Java API for configuring Google Static Maps requests and producing a URL for an image-loading client. The main workflow is to set map options and geographic content, serialize the configuration, then let a client fetch and display the resulting map. The library also supports map types, visible points, styled markers, and styled or filled paths. The excerpts show URL and polyline helpers; the demo’s broader runtime wiring was not sampled, so it is not expanded here.
Main entry points: StaticMap.java Map configuration · PolyLine.java Polyline encoder · UrlBuilder.java URL builder
Components 9
Map API
- Map configuration
library/src/main/java/com/mypopsy/maps/StaticMap.java - Styled markers
library/src/main/java/com/mypopsy/maps/StaticMap.java - Styled paths
library/src/main/java/com/mypopsy/maps/StaticMap.java
URL Encoding
- Polyline encoder
library/src/main/java/com/mypopsy/maps/internal/PolyLine.java - URL builder
library/src/main/java/com/mypopsy/maps/internal/UrlBuilder.java
Client Integration
- Image-loading client
- Map image
Other components
- Application developer
- Google Static Maps
Connections 8
- Application developer → Map configuration: configures
README.md - Application developer → Styled markers: adds markers
README.md - Application developer → Styled paths: adds paths
README.md - Map configuration → Polyline encoder: encodes paths
library/src/main/java/com/mypopsy/maps/StaticMap.java - Map configuration → URL builder: builds query
library/src/main/java/com/mypopsy/maps/StaticMap.java - Map configuration → Image-loading client: provides URL
README.md - Image-loading client → Google Static Maps: fetches map
README.md - Google Static Maps → Map image: returns image
README.md