ApiUriConstants class

A utility class that defines constants and helper methods for building and managing Google Map and API endpoint URIs.

This class provides a centralized place for all Google Maps–related endpoints (Directions, Geocoding, Places, etc.), along with custom application endpoints such as temporary ride APIs.

Usage example:

final url = ApiUriConstants.gMapDir('origin=NYC&destination=Boston');

Author: Your Name Package: google_map_service

Constructors

ApiUriConstants()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

gMapDir(String parameters) String
Builds a Google Maps direction URI.
gMapDisplayAMap(String parameters) String
Builds a Google Maps URI to display a map centered on given parameters.
gMapDisplayAStreetViewPanorama(String parameters) String
Builds a Google Maps URI to display a Street View panorama.
gMapPlaceDetail(String parameters, String gMapKey) String
Builds a URI for retrieving detailed place information.
gMapPlaceDetailByGeocode(String parameters, String gMapKey) String
Builds a URI for reverse geocoding by latitude and longitude.
gMapQueryAutocomplete(String parameters, String gMapKey) String
Builds a URI for the Google Places Query Autocomplete API.
headers() Future<Map<String, String>>
Returns standard headers for HTTP requests.

Constants

acceptRejectRequest → const String
Endpoint to accept or reject a temporary ride request.
createTempRide → const String
Endpoint to create a temporary ride.
gMapBaseUrl → const String
Base URL for legacy Google Maps REST APIs.
gMapGetRoutes → const String
Endpoint for computing directions and routes via Routes API v2.
gMapV2BaseUrl → const String
Base URL for Google Maps Routes API (v2).
listAllRequests → const String
Endpoint to list all temporary ride requests.
matchTempRide → const String
Endpoint to match temporary rides for users.
requestDetail → const String
Endpoint to retrieve the details of a specific ride request.
sendRequest → const String
Endpoint to send a ride request for a temporary ride.
userTempRideDetails → const String
Endpoint to retrieve a user’s temporary ride details.