# Company map, street view and coordinates

> How to view the aerial map, street view and coordinates of a CNPJ's address on CNPJá, copy latitude and longitude, refresh them and download the images.

The **Geolocation** section shows the [coordinates](https://cnpja.com/en-us/docs/glossary#coordenadas--coordinates) of the registered address and their precision, computed from that address, and renders, when you ask, the street view and the aerial map of the place. It closes the record page (**CNPJ** > legal name > **Geolocation**), and the **Sections** band leads straight to it. Where the coordinates and the images come from is in [Data sources](https://cnpja.com/en-us/docs/data/sources#google-maps).

## Address coordinates

To the left of the images (above them, on narrow screens), the section shows:

- **Latitude** and **Longitude**, with six decimal places. Each value has its own copy button.
- **Precision**, a three-step scale from the widest area to the point: **Municipality**, **District** and **Address**. The scale fills up to the level reached, which lights up with its name highlighted: green for **Address**, amber for **District** and **Municipality**. Without coordinates, no level lights up. The help icon next to it opens [Precision](https://cnpja.com/en-us/docs/data/location#precision), which explains each level.
- On screens with room for it, a drawing of the area the coordinates stand for, at the scale of the precision: the lot of the address among its blocks, the district or the whole municipality, with the state and the establishment's position in the corner. It is a diagram, not a map of the place. Without coordinates, only the drawing of the state or the country shows.
- Last, the **Coordinates** row, with **Copy coordinates**, which copies both values together, separated by a comma and with a decimal point, in the format maps accept, and **Open in Google Maps**, the pin icon, which opens the point of the coordinates in a new tab. Without coordinates, **Copy coordinates** does not show, and the pin opens a search for the address.

In the top right corner of the section, as in the other sections of the record, sit the source and its status, followed by the refresh button ([Refresh the coordinates](#refresh)). Coordinates have no computation date, so the status has only two values:

- **Geolocation · Updated:** the address has coordinates.
- **Geolocation · Never queried:** the address has no coordinates, because they were never computed or because the address was not located. Both cases look the same, and the values show as dashes.

Hover over the status (or tap it) to see the source, the status and, with coordinates, the **Live** or **Cache** mark.

## Street view and aerial map

The images never load on their own, not even when you refresh the record or the coordinates, and they can only be rendered when the **Precision** is **Address**. To render one:

1. Under **Geolocation**, choose the view in the header: **Street**, the street view (default), or **Aerial**, the aerial map. On wide screens both views show side by side and the switch goes away.
2. For the aerial map, choose the **Map type** in the selector next to the button: **Hybrid** (default), **Satellite** or **Roads**.
3. Click **Load**. As the frame warns beforehand, it is "A live query, billed for every image rendered."
4. Wait for **Rendering image…**. The image appears in the frame, and the aerial map shows its type at the top.

The image stays only in your browser, while the page is open. Leaving the record discards the loaded images.

When the precision is not address, the images are disabled: the **Street** and **Aerial** switch, the **Map type** selector and the **Load** buttons, which show a lock, do not respond, and each frame shows, in place of the image, **Street view unavailable** or **Aerial map unavailable**, with the reason:

- **District:** "Only the district of the address was located, so the image would not show the establishment."
- **Municipality:** "Only the municipality of the address was located, so the image would not show the establishment."
- **No coordinates:** "The address was not located, so the image would not show the establishment."

The **Load** hint says "Available only at address precision". Nothing is charged, since no image can be loaded. Without an account, the frames also show the reason, and the **Requires an account** line still shows. If a new query brings the precision to **Address** ([Refresh the coordinates](#refresh)), the images become available.

When Google has no photos of the address from the street, the **Street** view's frame shows **No street-level imagery for this address** in place of the image, and its **Load** button shows a lock, with the hint **No street-level imagery for this address**, while the record shows that address: another attempt would find no photos either. Nothing is charged, and the **Aerial** view stays available.

## Download and reload

- **Download image**, the button in the corner of the image, saves the file already in the browser, without rendering another image. The name carries the CNPJ without punctuation: `<cnpj>-street-view.jpg` for the street view and `<cnpj>-map.png` for the aerial map. The extension follows the format of the rendered image.
- **Reload**, in place of **Load** after the first image, renders a new image and is billed as a new load. To see the aerial map in another **Map type**, pick the type and click **Reload**.

If a load fails, the error message takes the place of the previous image, which can no longer be downloaded.

## Refresh the coordinates

Coordinates are computed once per address and recomputed when the address changes, as explained in [Address coordinates and imagery](https://cnpja.com/en-us/docs/data/location). To recompute them now:

1. In the top right corner of **Geolocation**, click the refresh button, next to the status. The hint says "Run a live query: Geolocation" and **Consumes one live query**.
2. Wait: the values, the **Precision** and the drawing are updated, and the status turns to **Updated** when the address is located.

Use it when the position looks wrong or old, or when the precision falls short of **Address**. An address that cannot be located stays **Never queried** after the query. Why coordinates may land away from the place is covered in [Precision](https://cnpja.com/en-us/docs/data/location#precision).

**Geolocation** is also in the **Sources** menu and in **Automatic updates**, and joins **Update all** only while the record has no coordinates, as explained in [Refresh data live](https://cnpja.com/en-us/docs/companies/live-refresh).

## Who can load images

Anyone sees the stored coordinates. Loading images and refreshing the coordinates require membership in an organization:

- **No account or no organization:** the frames read "A live query, which needs an account.", a **Requires an account** line offers **Log in** and **Create account**, and the **Geolocation** refresh button carries a padlock and the **Requires an account** hint.
- **Members:** they load images and refresh the coordinates on any plan and in any role. If you stop being part of the organization, or it is deactivated, while the page is open, the frame shows **No access to this organization** and "You are no longer part of the selected organization, or it was deactivated. Reload the page or switch organizations."

Access levels are covered in [Guests, accounts and organizations](https://cnpja.com/en-us/docs/app/access-levels#matrix).

## Quota usage

Each image rendered, on a load or a reload, and each **Geolocation** query, from the section's button, from **Update all** or from automatic updates, use the organization's live queries, as set out in the [Metering Rules](https://cnpja.com/en-us/legal/metering#platform). The street view of an address with no street photos renders no image and uses no query: the frame shows **No street-level imagery for this address** and "There are no street-level photos of this address, and no live query was consumed."

> **Important:** in automatic updates, **Geolocation** comes with the **When never queried** rule: a record without coordinates is queried live as it opens. An address that cannot be located stays without coordinates, so it is queried and charged again on every opening, until you pick **Never** for **Geolocation** in [Automatic updates](https://cnpja.com/en-us/docs/companies/live-refresh#automatic-updates). Usage follows the [Metering Rules](https://cnpja.com/en-us/legal/metering#auto-refresh).

## Using the images

Images and coordinates are generated with the Google Maps Platform, a third-party service. The use of what you download follows the [Image usage rules](https://cnpja.com/en-us/docs/data/location#usage-rules) and the [Terms of Use](https://cnpja.com/en-us/legal/terms#data).

## Common problems

The frame shows the problem in place of the image, with the error code, which helps when you [contact us](https://cnpja.com/en-us/docs/support/contact#what-to-send):

| Message | What it means | What to do |
| --- | --- | --- |
| **Street view unavailable** or **Aerial map unavailable** | The coordinates fall short of address precision, so the image would not show the establishment | See [Precision](https://cnpja.com/en-us/docs/data/location#precision) and [refresh the coordinates](#refresh), which may bring the precision to **Address** |
| **No access to this organization** | You stopped being part of the selected organization, or it was deactivated, while the page was open | Reload the page or switch organizations |
| **No street-level imagery for this address** | Google has no photos of the address from the street. No query was used, and the **Street** view's **Load** button stays locked while the record shows that address | Use the **Aerial** view |
| **Images removed at the owner's request** | The CNPJ's personal data was removed, and the images with it | Nothing to do. See [After removal](https://cnpja.com/en-us/docs/privacy/data-removal#after) |
| **The image could not be rendered** | Rendering failed. The text below tells why: try again in a moment, session expired, or a CNPJ the Receita Federal no longer lists | Try loading again in a moment, or sign in again |
| Quota notice in the frame | The organization used up its quota | See the ways out in [Quota used up](https://cnpja.com/en-us/docs/billing/quota-exhausted) |

Other cases:

- **Never queried after a refresh:** the address was not located. Check it with **Open in Google Maps**. A wrong address can only be corrected at the source, as explained in [How to correct data at the source](https://cnpja.com/en-us/docs/data/sources#correct-at-source). To stop querying it again on every opening, pick **Never** for **Geolocation** in **Automatic updates**.

More cases in [Troubleshooting](https://cnpja.com/en-us/docs/support/troubleshooting).

## In the API

In the API, the coordinates are an optional resource of Lookup CNPJ, with the precision in `address.coordinates.precision`, and the images have the Render CNPJ map and Render CNPJ street view operations. See [Location and maps](https://cnpja.com/en-us/docs/api/location).
