Skip to main content

NeighborhoodWrap

NeighborhoodWrap is a set of SDKs designed to showcase information about the neighborhood.

NeighborhoodWrap and all of its underlying SDKs are supported for neighborhoods, cities, US postal codes, US county subdivisions, US/Canadian counties and county equivalents, and regions.

Screenshot of NeighborhoodWrap SDKs Screenshot of NeighborhoodWrap SDKs Screenshot of NeighborhoodWrap SDKs Screenshot of NeighborhoodWrap SDKs Screenshot of NeighborhoodWrap SDKs Screenshot of NeighborhoodWrap SDKs Screenshot of NeighborhoodWrap SDKs Screenshot of NeighborhoodWrap SDKs Screenshot of NeighborhoodWrap SDKs

Implementation

NeighborhoodWrap SDKs may be initialized by passing either latitude and longitude coordinates or the geog_id of their desired neighborhood. Geog_id is the preferred initialization option as it gives you complete control over the exact neighborhood you wish to display in NeighborhoodWrap.

Geog_id Initialization

To understand the difference between these two approaches, imagine that you are using NeighborhoodWrap to display neighborhood information from Brooklyn, New York City. Initializing NeighborhoodWrap with the geog_id corresponding to Brooklyn guarantees that this neighborhood will be displayed in NeighborhoodWrap.

Latitude and Longitude Initialization

By contrast, if you initialize NeighborhoodWrap using latitude and longitude coordinates, then NeighborhoodWrap will display the smallest known neighborhood that encloses those coordinates. This means that if a smaller neighborhood exists between the latitude and longitude you provided and your desired neighborhood, then the smaller neighborhood will always be displayed.

Example

For example, if your latitude and longitude pair were actually located in the Williamsburg section of Brooklyn, then NeighborhoodWrap will always display Williamsburg, even though Brooklyn is your desired neighborhood.

Screenshot of geography boundaries

This means that to ensure NeighborhoodWrap always displays the exact neighborhood you intend, you should use geog_id initialization with all NeighborhoodWrap SDKs.

If you require an updated list of all supported Local Logic geog_ids, please contact us at support@locallogi.co.

Supporting API Endpoints

The following Local Logic APIs are used by the different SDKs to display data.