Skip to content
Address coordinates and imagery
Help · Data

Address coordinates and imagery

Latitude and longitude of a CNPJ address: how CNPJá calculates the coordinates, their precision, unlocated addresses, map, street view and usage rules.

The coordinates, the map and the street view show where an establishment’s registered address is. CNPJá calculates and generates them from the address the CNPJ has in the Receita Federal registry, with a third-party service, as explained in Data sources.

Where they come from

The registered address combines street, number, district, municipality, state, CEP and country. From this address, CNPJá gets three results:

ResultWhat it is
CoordinatesThe latitude and longitude of the address, to place the establishment on your own map or calculate distances
MapA map image centered on the address, with a marker at that point, in styles such as roads, satellite and hybrid
Street viewAn image of the address seen from street level, such as the façade and its surroundings

The location is always that of the CNPJ looked up. Each establishment has its own address in the registry, and the head office and each branch are at different places: to locate a branch, use its CNPJ, not the head office’s, as explained in Companies and establishments.

All three start from the same address: the images are generated from it, not from the coordinates, and carry no latitude or longitude. The addresses of state and SUFRAMA registrations come from other registries and are not used, and CEPs have no coordinates of their own.

Precision

The coordinates are the point where the text of the address is placed on the map, not a measurement taken on site. When the address itself cannot be located, CNPJá falls back to the district or the municipality, and the precision tells which point the coordinates stand for:

PrecisionWhat the coordinates stand for
AddressThe registered address itself, located within its municipality, or within its country when the address has no municipality
DistrictThe district of the address, when only the district was located within the municipality
MunicipalityThe municipality seat, when neither the address nor its district was located within the municipality

When the address cannot be located even so, there are neither coordinates nor precision, as explained in Address not located. The precision is calculated and stored together with the coordinates, and changes only when they are recalculated: an address located by its district or its municipality already has coordinates and is not recalculated on every request.

The precision depends on the registry: an incomplete, outdated or ambiguously spelled address at the Receita Federal may be located only by its district or its municipality, or not at all.

At district or municipality precision, the coordinates place the area, not the establishment, and the images, generated from the same address, would not show it either. That is why the platform offers the street view and the aerial map only at address precision, and in the API it is worth checking the precision before generating an image.

Use the coordinates and the images to support checking an address, not as confirmation that the establishment operates at that place. A wrong address can only be corrected at the source, in the CNPJ registry at the Receita Federal, as explained in How to correct data at the source.

Coordinates calculated once per address

The coordinates are calculated once for each address and stored. Establishments with the same registered address share the same coordinates, and an address already located is not calculated again on another CNPJ’s first lookup.

The calculation is only redone when the registered address changes or when a member queries Geolocation on the CNPJ’s record, as shown in Where it appears in the app. The max age does not apply to the coordinates: a new reading of the Receita Federal can bring a new address, but it does not recalculate the coordinates of an address that did not change. The coordinates also carry no calculation date. The rules for resources that do not follow the max age are in Resources with their own rules.

The calculation is a live query, and coordinates already calculated come from the cache. The consumption of each case is in the Metering Rules, under CNPJ lookup, in the API, and Consumption on the web Platform.

Address not located

When the address cannot be located, the establishment has no coordinates and no precision. Meanwhile, the calculation is tried again on every request for coordinates, and each attempt is made live.

In the app, that CNPJ’s record shows Geolocation as Never queried, the same as one never calculated, and the default rule of automatic updates tries the calculation again every time it opens.

Important: while the address cannot be located, asking for the coordinates consumes live queries every time, including in every export with the coordinates and every time the record opens under the default automatic updates rule. Ask for the coordinates only when you will use them and, for a record you open often, choose Never for Geolocation in Automatic updates. The rules are in What is charged even without a useful result.

A momentary failure of the query is different: the result arrives without the coordinates at that moment, as a partial result, the coordinates are not charged and the request can be repeated later.

Images can also be missing: there is no imagery of every place, and an address that cannot be located has no map. On the platform, the street view of an address with no street photos shows No street-level imagery for this address and is not billed, as explained in Quota usage; in the API, see Location and maps.

Images generated on each request

The map and the street view are generated on each request, at 640 × 640 pixels. CNPJá neither stores nor reuses the images: asking again generates and charges another image, always live, as explained in the Metering Rules.

The images start from the address already stored on CNPJá. An address that changed at the Receita Federal only shows in the images after the CNPJ’s registration is refreshed, as explained in Data freshness.

The street view shows the imagery available of the place, which may have been captured before changes to the property or the street.

Image usage rules

The images and the coordinates are generated with the Google Maps Platform, and their use follows Google’s terms and the Terms of Use. If you store an image or coordinates, respect the storage limits in the Google Maps Platform terms.

Where it appears in the app

  • On a CNPJ’s record, the Geolocation section shows the Latitude, the Longitude and the Precision and, at address precision, renders the Street view and the Aerial map only when you click Load. Download image saves the loaded image, within the usage rules. See Map, street view and coordinates.
  • At the top of the section, the Geolocation source shows Updated or Never queried, with no age, and the refresh button next to it recalculates the coordinates and the precision. Update all and automatic updates only calculate them when the record has none yet. Loading images and updating the coordinates require being a member of an organization. See Refresh data live.
  • In exports, the Address coordinates resource brings the latitude and longitude of each establishment, as explained in Export to a spreadsheet.

In the API

The coordinates are an optional resource of Lookup CNPJ, requested with expand=address.coordinates, and arrive in address.coordinates, with latitude and longitude set to null when the address cannot be located. The precision arrives in address.coordinates.precision, as ADDRESS, DISTRICT, MUNICIPALITY or null. The images have their own operations, Render CNPJ map and Render CNPJ street view, and none of the three is available through public access. Parameters, response fields, map styles, errors and use cases are in Location and maps in the API.

Informational content that may change without notice. It is not tax, accounting or legal advice, and CNPJá's terms and policies prevail over this page.