{"id":150623,"date":"2025-12-04T23:12:00","date_gmt":"2025-12-04T21:12:01","guid":{"rendered":"https:\/\/prohoster.info\/blog\/novosti-interneta\/vypusk-geoip-0-1-0-realizaczii-rest-api-dlya-opredeleniya-mestopolozheniya-po-ip"},"modified":"2025-12-04T23:12:00","modified_gmt":"2025-12-04T21:12:01","slug":"vypusk-geoip-0-1-0-realizaczii-rest-api-dlya-opredeleniya-mestopolozheniya-po-ip","status":"publish","type":"post","link":"https:\/\/prohoster.info\/pt\/blog\/news\/vypusk-geoip-0-1-0-realizaczii-rest-api-dlya-opredeleniya-mestopolozheniya-po-ip","title":{"rendered":"Lan\u00e7amento do geoip 0.1.0, implementa\u00e7\u00e3o da API REST para determinar a localiza\u00e7\u00e3o por IP","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>O primeiro lan\u00e7amento do projeto geoip ocorreu, implementando um servi\u00e7o para obter informa\u00e7\u00f5es sobre a localiza\u00e7\u00e3o de endere\u00e7os IP atrav\u00e9s da API REST. O projeto \u00e9 voltado para simplificar a integra\u00e7\u00e3o das funcionalidades de GeoIP em diferentes aplica\u00e7\u00f5es, liberando o desenvolvedor da necessidade de gerenciar atualiza\u00e7\u00f5es de bancos de dados e trabalhar com o formato MMDB. O c\u00f3digo \u00e9 escrito na linguagem Rust e \u00e9 distribu\u00eddo sob a licen\u00e7a MIT. Suporta opera\u00e7\u00e3o no Linux e macOS, bem como em outros sistemas UNIX-like.    <\/p>\n<p>Principais recursos do servi\u00e7o:  <\/p>\n<ul>\n<li class=\"l\"> Alta performance e baixo consumo de mem\u00f3ria, gra\u00e7as ao uso de uma linguagem compilada em c\u00f3digo de m\u00e1quina sem coletor de lixo.\n<li class=\"l\"> Fornecimento de informa\u00e7\u00f5es sobre o endere\u00e7o IP (pa\u00eds, cidade, c\u00f3digo postal, coordenadas, operadora de telecomunica\u00e7\u00f5es e outros) atrav\u00e9s da API REST com base nos dados MaxMind GeoLite2 (gratuito) e MaxMind GeoIP2 (pago).\n<li class=\"l\"> Determina\u00e7\u00e3o do usu\u00e1rio atual <a class=\"wpil_keyword_link\" href=\"https:\/\/prohoster.info\/pt\/lir\/ipv4\/\"   title=\"endere\u00e7os IP\" data-wpil-keyword-link=\"linked\"  data-wpil-monitor-id=\"741\">endere\u00e7os IP<\/a> (dispon\u00edvel atrav\u00e9s de um endpoint separado; o par\u00e2metro ip do endpoint principal \u00e9 opcional).\n<li class=\"l\">  Atualiza\u00e7\u00f5es autom\u00e1ticas configur\u00e1veis dos bancos de dados (tanto de recursos oficiais da MaxMind usando Account ID e Licence Key, quanto de uma URL personalizada com suporte a autentica\u00e7\u00e3o; \u00e9 poss\u00edvel especificar o intervalo de verifica\u00e7\u00e3o de atualiza\u00e7\u00f5es).\n<li class=\"l\">  Interface web para envio manual de solicita\u00e7\u00f5es, incluindo suporte opcional para exibi\u00e7\u00e3o no mapa do OpenStreetMap.  <center><img decoding=\"async\" alt=\"Lan\u00e7amento do geoip 0.1.0, implementa\u00e7\u00e3o da API REST para determinar a localiza\u00e7\u00e3o por IP\" src=\"\/wp-content\/uploads\/2025\/12\/d2489b99ef95e337ca6ecf1cea1c2347.png\" style=\"display:block;margin: 0 auto;\" \/><\/center>\n<li class=\"l\">  Para todos os resultados que cont\u00eam o campo timezone, \u00e9 automaticamente gerado um campo adicional posix_timezone (por exemplo, Europe\/Paris se transforma em CET-1CEST,M3.5.0,M10.5.0\/3). Isso garante a configura\u00e7\u00e3o autom\u00e1tica do fuso hor\u00e1rio em dispositivos embarcados (por exemplo, ESP32 e outros destinos newlib sem tzdata incorporada). Esse recurso \u00e9 \u00fanico e ausente em solu\u00e7\u00f5es semelhantes.\n<li class=\"l\"> Atualiza\u00e7\u00e3o autom\u00e1tica do banco de dados de fusos hor\u00e1rios (intervalo, fonte e autentica\u00e7\u00e3o s\u00e3o configur\u00e1veis; por padr\u00e3o, o site oficial da IANA \u00e9 usado). Ao desativar as atualiza\u00e7\u00f5es, o banco de dados do sistema \u00e9 aplicado.\n<li class=\"l\">  Possibilidade de download de arquivos atuais dos bancos de dados via HTTP diretamente do servi\u00e7o (o que permite usar uma inst\u00e2ncia como fonte proxy para outras e reduzir o consumo de cota da MaxMind).\n<li class=\"l\"> Suporte \u00e0 prote\u00e7\u00e3o de endpoints com uma chave de API opcional.\n<li class=\"l\">  A disponibilidade de uma especifica\u00e7\u00e3o OpenAPI e Swagger UI integrado para facilitar a integra\u00e7\u00e3o com seus projetos.\n<li class=\"l\"> Fornecimento de uma imagem Docker pronta para r\u00e1pida implanta\u00e7\u00e3o:    docker run &#092;  \t-e MAXMIND_ACCOUNT_ID=XXXX &#092;  \t-e MAXMIND_LICENCE_KEY=YYYY &#092;  \t-e OSM_TILES_URL=&#187;https:\/\/{s}.tile.openstreetmap.org\/{z}\/{x}\/{y}.png&#187; &#092;  # opcional  \t-v geoip_data:\/data &#092;  \t-p 8080:8080 &#092;  \tghcr.io\/quoi-dev\/geoip:latest    <\/ul>\n<p>Fonte: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/www.opennet.ru\/opennews\/art.shtml?num=64372\">opennet.ru<\/a> <\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u0421\u043e\u0441\u0442\u043e\u044f\u043b\u0441\u044f \u043f\u0435\u0440\u0432\u044b\u0439 \u0440\u0435\u043b\u0438\u0437 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 geoip, \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0449\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u043c\u0435\u0441\u0442\u043e\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0438 IP-\u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 REST API. \u041f\u0440\u043e\u0435\u043a\u0442 \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d \u043d\u0430 \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u0438\u0435 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 GeoIP-\u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0432 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0430\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u043e\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f\u043c\u0438 \u0431\u0430\u0437 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0444\u043e\u0440\u043c\u0430\u0442\u043e\u043c MMDB. \u041a\u043e\u0434 \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 Rust \u0438 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0434 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0435\u0439 MIT. \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u0432 Linux \u0438 macOS, [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":150624,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[702],"tags":[],"class_list":["post-150623","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u0421\u043e\u0441\u0442\u043e\u044f\u043b\u0441\u044f \u043f\u0435\u0440\u0432\u044b\u0439 \u0440\u0435\u043b\u0438\u0437 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 geoip, \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0449\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u043c\u0435\u0441\u0442\u043e\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0438 IP-\u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 REST API.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/pt\/blog\/news\/vypusk-geoip-0-1-0-realizaczii-rest-api-dlya-opredeleniya-mestopolozheniya-po-ip\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<meta property=\"og:locale\" content=\"pt_PT\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u0412\u044b\u043f\u0443\u0441\u043a geoip 0.1.0, \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 REST API \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043c\u0435\u0441\u0442\u043e\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e IP | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u0421\u043e\u0441\u0442\u043e\u044f\u043b\u0441\u044f \u043f\u0435\u0440\u0432\u044b\u0439 \u0440\u0435\u043b\u0438\u0437 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 geoip, \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0449\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u043c\u0435\u0441\u0442\u043e\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0438 IP-\u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 REST API.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/pt\/blog\/news\/vypusk-geoip-0-1-0-realizaczii-rest-api-dlya-opredeleniya-mestopolozheniya-po-ip\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2025-12-04T21:12:01+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2025-12-04T21:12:01+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47 Lan\u00e7amento do geoip 0.1.0, implementa\u00e7\u00e3o de REST API para determina\u00e7\u00e3o de localiza\u00e7\u00e3o por IP | ProHoster","description":"O primeiro lan\u00e7amento do projeto geoip ocorreu, implementando um servi\u00e7o para obter informa\u00e7\u00f5es sobre a localiza\u00e7\u00e3o de endere\u00e7os IP atrav\u00e9s de REST API.","canonical_url":"https:\/\/prohoster.info\/pt\/blog\/news\/vypusk-geoip-0-1-0-realizaczii-rest-api-dlya-opredeleniya-mestopolozheniya-po-ip","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"pt_PT","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u0412\u044b\u043f\u0443\u0441\u043a geoip 0.1.0, \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 REST API \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043c\u0435\u0441\u0442\u043e\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e IP | ProHoster","og:description":"\u0421\u043e\u0441\u0442\u043e\u044f\u043b\u0441\u044f \u043f\u0435\u0440\u0432\u044b\u0439 \u0440\u0435\u043b\u0438\u0437 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 geoip, \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0449\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u043c\u0435\u0441\u0442\u043e\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0438 IP-\u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 REST API.","og:url":"https:\/\/prohoster.info\/pt\/blog\/news\/vypusk-geoip-0-1-0-realizaczii-rest-api-dlya-opredeleniya-mestopolozheniya-po-ip","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2025-12-04T21:12:01+00:00","article:modified_time":"2025-12-04T21:12:01+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"150623","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":"2026-02-08 20:36:23","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2026-01-23 16:25:22","updated":"2026-02-08 20:36:23","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/pt\/wp-json\/wp\/v2\/posts\/150623","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/pt\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/pt\/wp-json\/wp\/v2\/comments?post=150623"}],"version-history":[{"count":1,"href":"https:\/\/prohoster.info\/pt\/wp-json\/wp\/v2\/posts\/150623\/revisions"}],"predecessor-version":[{"id":157932,"href":"https:\/\/prohoster.info\/pt\/wp-json\/wp\/v2\/posts\/150623\/revisions\/157932"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/pt\/wp-json\/wp\/v2\/media\/150624"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/pt\/wp-json\/wp\/v2\/media?parent=150623"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/pt\/wp-json\/wp\/v2\/categories?post=150623"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/pt\/wp-json\/wp\/v2\/tags?post=150623"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}