Registry / networking / google-maps-services

google-maps-services

JSON →
library2.2.0javamavenunverified

Java client library for Google Maps Platform Web Services, enabling geocoding, directions, and places API integration.

<dependency> <groupId>com.google.maps</groupId> <artifactId>google-maps-services</artifactId> <version>2.2.0</version> </dependency>
INSTALL
IMPORT
SIG · GOOGLE-MAPS-SERVIC
G
google-maps-services
networkingjavav2.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GeoApiContext
com.google.maps.GeoApiContext

Geocodes an address using the Google Maps Geocoding API.

import com.google.maps.GeoApiContext; import com.google.maps.GeocodingApi; import com.google.maps.model.GeocodingResult; public class MapsExample { public static void main(String[] args) throws Exception { GeoApiContext context = new GeoApiContext.Builder() .apiKey("YOUR_API_KEY") .build(); GeocodingResult[] results = GeocodingApi.geocode(context, "1600 Amphitheatre Parkway, Mountain View, CA").await(); System.out.println(results[0].formattedAddress); } }
Debug
Known issues
gotchaAPI key required and must be kept secure; avoid exposing in client-side code.
fix
Store API key in environment variables or secure configuration.
affects: all
Upgrade
Version history
2.2.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
google-maps-services — mvn dependency:get google-maps-services · libregistry