Inegi Denue is a library for consume the public API of Inegi.
- Visual Studio
- Internet (to download the packages from nuget)
Open the project, build, and take the dll generated by Visual Studio, or import this project to your project.
Soon, idk i will upload this to Nuget for easy installation.
First, you need to import the class to your project
Imports inegi_denue
There are 2 functions that returns a datatable.
Dim dt As DataTable = (New Inegi).buscar(token, search, range, coords)
Token.- To make a request to this API, you need a Token, It is necessary to make all requests.
Search.- Is what you want to search (ex. Camiones), it will return all the establishments that match the search criteria.
Range.- The area (in meters), you want to cover.
Coords.- Latitude & Longitude (ex. "25.669234,-100.312108")
Dim dt As DataTable = (New Inegi).ficha(id, token)
Id.- Establishment Id
The datatable that will return have the following columns:
- Id de establecimiento
- Nombre del establecimiento
- Razón social
- Clase de la actividad
- Estrato (Personal ocupado)
- Tipo de la vialidad
- Calle
- Número exterior
- Número interior
- Colonia
- Código postal
- Localidad, municipio y entidad
- Teléfono
- Correo electrónico
- Página de internet
- Tipo de establecimiento
- Longitud
- Latitud
and that's it!
If you want to contribute or have an idea to make this library better, please create another branch.
- Upload this project to Nuget
or tell me and i will add it! :squirrel: