> ## Documentation Index
> Fetch the complete documentation index at: https://docs.layerfi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get address details

> Resolves a `place_id` from the address suggestions endpoint to a formatted address and coordinates.

Resolves a `place_id` returned by [address suggestions](/api-reference/v1/get-address-suggestions) to a full formatted address and coordinates.

Use the same `session_token` as the suggestion requests that produced the `place_id`; this call ends the autocomplete session.


## OpenAPI

````yaml get /v1/businesses/{businessId}/mileage/address-details
openapi: 3.0.1
info:
  title: API
  version: latest
servers: []
security:
  - BearerAuth: []
tags: []
externalDocs:
  url: /
paths:
  /v1/businesses/{businessId}/mileage/address-details:
    get:
      tags: []
      summary: Get address details
      description: >-
        Resolves a `place_id` from the address suggestions endpoint to a
        formatted address and coordinates.
      operationId: business.mileage.addressDetails.get
      parameters:
        - name: businessId
          in: path
          description: The UUID of the business.
          required: true
          schema:
            type: string
            format: uuid
        - name: place_id
          in: query
          description: The Google Maps place ID from an address suggestion.
          required: true
          schema:
            type: string
        - name: session_token
          in: query
          description: >-
            An opaque session token generated by the client (e.g. a UUID). Use
            the same token for all autocomplete requests in one address-entry
            session and the final address details request, then discard it.
            Groups the requests into a single billed session.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Address details retrieved successfully.
          headers: {}
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/ApiPlaceDetails'
                required:
                  - data
components:
  schemas:
    ApiPlaceDetails:
      type: object
      properties:
        place_id:
          type: string
          description: The Google Maps place ID of the address.
        formatted_address:
          type: string
          nullable: true
          description: The full formatted address.
        latitude:
          type: string
          nullable: true
          description: The latitude of the address, as a decimal string.
        longitude:
          type: string
          nullable: true
          description: The longitude of the address, as a decimal string.
      required:
        - place_id
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````