Rex's plugins for Construct2
  • Home
  • Map
  • Tutorial/Templates
  • News
  • About

rex_geocoding

Plugin, ACE table, Discussion thread
Dependence: rex_googlemap_api

Introduction
Converting between geographic coordinates and human-readable address.

Usage
Sample capx
Convert human-readable address to geographic coordinates
Follows these steps to convert address to geographic coordinates
  1. Wait rex_googlemap_api loaded completed ( "Condition:On loaded" of rex_googlemap_api )
  2. Call "Action:Convert address to LatLng" to start address converting
  3. "Condition:On completed" in "LatLng" category will be triggered while get result of geographic coordinates. Otherwise "Condition:On error" in "LatLng" category will be triggered.
  4. Get geographic coordinates by ( "Expression:LastLatitude" , "Expression:LastLongitude" )
Convert geographic coordinates to human-readable address
Follows these steps to convert geographic coordinates to address
  1. Wait rex_googlemap_api loaded completed ( "Condition:On loaded" of rex_googlemap_api )
  2. Call "Action:Convert LatLng to address" to start latlng converting
  3. "Condition:On completed" in "Address" category will be triggered while get result of human-readable address. Otherwise "Condition:On error" in "Address" category will be triggered.
  4. Get full address by "Expression:LastFormattedAddress". Or get address components by these expressions -
  • Expression:LastPostalCode
  • Expression:LastCountry , Expression:LastCountryShort
  • Expression:LastPolitical , Expression:LastPoliticalShort
  • Expression:LastLocality , Expression:LastLocalityShort
  • Expression:LastRoute , Expression:LastRouteShort
  • Expression:LastStreetNumber

Create a free web site with Weebly
  • Home
  • Map
  • Tutorial/Templates
  • News
  • About