---
title: "Returns the location city, state, country from coordinates."
method: GET
path: "/Ymc/{ClientID}/Member/{MemberID}/Pinpoint"
tags: ["Ymc"]
---

# Returns the location city, state, country from coordinates.

`GET /Ymc/{ClientID}/Member/{MemberID}/Pinpoint`

## Request

- Base URL: `https://ws.yourmembership.com`
- URL: `https://ws.yourmembership.com/Ymc/{ClientID}/Member/{MemberID}/Pinpoint`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/yourmembership/apis/ym-rest-services/docs/Ymc/:ClientID/Member/:MemberID/Pinpoint/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns the location city, state, country from coordinates.

## Path parameters

- `MemberID` integer, required
- `ClientID` integer, required

## Query parameters

- `lat` number, double
- `lng` number, double
- `ResponseStatus` string
- `BypassCache` boolean
- `DateCached` string, date-time
- `Device` string

## Response `200`

Returns the City, State and Country corresponding to a given set of longitude and latitude.

- CityLookupResponse: Returns the City, State and Country corresponding to a given set of longitude and latitude.
  - `response` Data: Data
    - `city` string
    - `state` string
    - `country` string
    - `latitude` number, double
    - `longitude` number, double
    - `place_id` string
  - `lat` number, double
  - `lng` number, double
  - `MemberID` integer
  - `ClientID` integer
  - `ResponseStatus` ResponseStatus: ResponseStatus
    - `ErrorCode` string
    - `Message` string
    - `StackTrace` string
    - `Errors` ResponseError[]
      - `ErrorCode` string
      - `FieldName` string
      - `Message` string
      - `Meta` DictionaryStringString: Dictionary<String,String>
    - `Meta` DictionaryStringString: Dictionary<String,String>
  - `BypassCache` boolean
  - `DateCached` string, date-time
  - `Device` string

---

[API](https://skmtc.dev/yourmembership/apis/ym-rest-services.md) - [All operations](https://skmtc.dev/yourmembership/apis/ym-rest-services/llms.txt) - [OpenAPI document](https://skmtc.dev/yourmembership/apis/ym-rest-services/revisions/8d8a2e7e7d56?raw)
