Giter Club home page Giter Club logo

fias_gar's Introduction

Hi there 👋

I'm Artyom. I primarially work with .NET and TypeScript.

Metrics

Languages
C# SQL TypeScript LUA Markdown HTML5
Tools
Visual Studio Code Visual Studio Postman GitHub GitHub Actions
Platform
.Net NodeJS Nuxt GitHub Pages

Repositrory Archive

fias_gar's People

Contributors

virenbar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

vistepanov

fias_gar's Issues

Добавить обновление с помощью дельта файлов

Алгоритм:

  1. Выбрать дату последней записи в реестре.
-- Дата последнего изменения
SELECT [dbo].[SUF_LastUpdate]()
  1. Скачать архивы созданные после данной даты.
    Первый архив с датой равной или больше последней нужно пропустить.
    JSON с ссылками
  2. Извлечь файлы (Нужен список субъектов в БД чтобы не извлекать лишние файлы)
/*
Первые две цифры КЛАДР должны подойти. 
Для Свердловской обл. подходит.
Нужно проверить какой код у Москвы и её области.
*/
SELECT
	SUBSTRING([K].VALUE, 1, 2)
FROM
	[ADDR_OBJ] [AO]
LEFT JOIN [V_KLADR] [K] ON [K].[OBJECTID] = [AO].[OBJECTID]
WHERE [level] = 1
  1. Импортировать в порядке возрастания даты.

Примечания:
В версии 20220308 нет ссылок на архивы ГАР.
А в последней версии часто нет ссылки либо на дельту, либо на полный архив.
З.Ы.
Дельта за 23 потерялась.
chrome_22 09 29-14 50 21
Спустя 5 дней нашлась. Нужна проверка на наличие всех ссылок.
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.