geolocation from ip

This block is part of the value group and was last modified in core v14.0.3.

geolocation from ip v14.0.3

Retrieves location data (city, province, country, continent, timezone) from an IPv4/IPv6 address using a geo database. No coordinates are returned

In pins 1
  • value required
    value

    The IPv4 or IPv6 to geolocate from

Out pins 8
  • success
    condition

    Indicates if the lookup succeeded

  • city
    value

    City nearby the IP

  • province
    value

    Province nearby the IP

  • country
    value

    Country of the resident of the IP

  • continent
    value

    Continent of the resident of the IP

  • timezone
    value

    Timezone of the country

  • Accuracy
    number

    Accuracy Radius in km

  • error
    value

    Shown error if the lookup failed

Resolves an IP to city, province, country, continent, timezone and accuracy_radius (km); NO latitude/longitude outputs exist. An empty ip is looked up as 0.0.0.0. On any failure success stays false, the location pins stay nil, and error carries INVALID_IP, GEOLOCATOR_NOT_AVAILABLE, LOOKUP_FAILED or NOT_FOUND.

A typical wiring for geolocation from IP: value feeds the ip pin; the success out pin feeds branch.

Studio canvas example for the geolocation from IP block: typical wiring for geolocation from IP.

Version history

Introduced in v14.0.3.


Back to value Return to the main group to view all sub-groups Back to custom Return to the group to view all blocks within this group