Skip to content

CountryReverseGeocoder package for Unity.

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta
Notifications You must be signed in to change notification settings

hk1ll3r/ReverseGeocoderForUnity

Repository files navigation

ReverseGeocoderForUnity

openupm

Reverse Geocoder for Unity allows you to look up world coordinates (latitude, longitude) and get the country / US state the query point falls into. The code is offline and performs no network calls.

The code is based off Wibci.CountryReverseGeocode.

The library can be used with custom data. For example you could gather data for provinces of countries other than the US and use it with this library. The sample .json files for US and world countries are included in this package.

Why not use Wibci.CountryReverseGeocode directly?

  • Less code: That project is a general C# project, with all the NUnit tests and a gen project. Not suitable for inclusion in a Unity project. This project is way smaller and contians the minimal set of files from the original package. It reduces the binary build file of your game.

  • Basic Unity integration: This package adds a thin MonoBehavoiur wrapper around the main service class for use with Unity. The showcase project (this) includes a sample Unity scene that performs reverse Geocode queries.

  • This package also gets around a build problem in Unity by removing the large class data initializers and loading the data at runtime from .json files.

Installation

⚠️ This package has a dependency on Newtonsoft.json for Unity. Install that first.

Install via Git URLs

Add this git URL in Unity's package manager.

https://github.com/hk1ll3r/ReverseGeocoderForUnity

Install via Traditional .unitypackage File

Releases contain the ReverseGeocoderForUnity.unitypackage.

Install via OpenUPM

openupm add com.nosuchstudio.reversegeocoder

Install via Unity Asset Store

This package is available on Unity Asset Store: (http://u3d.as/1WT5).

License

This package is licensed under The MIT License (MIT)

Copyright © 2020 Hoss Shah (hk1ll3r) https://github.com/hk1ll3r/ReverseGeocoderForUnity

See full copyrights in LICENSE.md inside repository

About

CountryReverseGeocoder package for Unity.

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta

Stars

Watchers

Forks

Packages

No packages published

Languages