Git Product home page Git Product logo

libpostalnet's People

Contributors

fwest98 avatar kilick avatar mapo80 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

libpostalnet's Issues

Add License Info

Hi - this is great work! Can you add a license to the project so others can us it?

Libpostal itself uses the MIT License.

Thanks!

Unhandled exception

Hi Mapo,

I think there is an error beetween manage and unmanage code, convertion from string to char* and reverse do not work in some strings.
This code hangs the dll.

Sub Main()
	Dim dades As String() = {"JUELICHER STRASSE 10/12, Aachen, Germany",
	"Juelicher Strasse 10-12, 52070, AACHEN, DE",
	"Jülicherstraße 10 - 12, 52070 Aachen",
	"Juelicher Strasse 10-12 - 52070",
	"Jülicher Str. 10-12, 52070, Aachen, Germany",
	"Juelicherstrasse, 10 - 12 Aachen 52070",
	"Jülicher Str. 10-12, Aachen, Germany",
	"Juelicher Strasse 10-12, 52070, AACHEN, GERMANY",
	"Juelicher Strasse 10-12",
	"Juelicher Strasse 10-12 Aachen 52070, Aachen, Germany",
	"Juelicher Str. 10-12",
	"Juelicher Str. 10-12, 52070, Germany, DE",
	"Juelicher Strasse 10-12    Aachen",
	"JUELICHER STRASSE 10/12, 52070 AACHEN, GERMANY",
	"JUELICHER STRASSE 10/12, 52070 AACHEN, GERMANY",
	"Juelicher Strasse 10/12",
	"Juelicher Strasse 10-12,  , 52070, AACHEN",
	"Juelicher Strasse 10-12,  , 52070 "}

	Dim Res = libpostal.LibpostalSetup
	Dim Res2 = libpostal.LibpostalSetupParser

	For Each address As String In dades

		Console.WriteLine(address)
		Dim response = libpostal.LibpostalParseAddress(address, New LibpostalAddressParserOptions)
		Dim x = response.Results
		libpostal.LibpostalAddressParserResponseDestroy(response)
		For Each p As KeyValuePair(Of String, String) In x
			Console.WriteLine("{0}: {1}", p.Key, p.Value)
		Next
		Console.WriteLine()
	Next

	' Teardown (only called once at the end of your program)
	libpostal.LibpostalTeardown()
	libpostal.LibpostalTeardownParser()
End Sub

Steps to run LipPostalNet console

I am new to .net! wonder how to run the console, do I need install C library for libPostal first? how to link it to this .net app?

Thanks

How to use the LibPostalNet

Hello,

I download the solution and compile it.
But when I see the results of the libPostalConsole, they appear in non-comprensible language.

image

Please, could you help me to fix this issue?

Thanks a lot,

The result is null

image

I downloaded your solution, but it can't give me the correct result, could you give me some advise?

Getting error in building the project

Slightly new to C#, opened project in Visual Studio:

Did not find LibPostalNet.exe - tried to build project.

Getting following error while building project, not able to reference LibpostalNet within LibpostalConsole

Severity Code Description Project File Line Suppression State
Error CS0246 The type or namespace name 'LibPostalNet' could not be found (are you missing a using directive or an assembly reference?) LibPostalConsole C:\JB\Study\LibPostal\DotNet\LibPostalNet\LibPostalConsole\Program.cs 1 Active

Severity Code Description Project File Line Suppression State
Error Project '..\LibPostalNet\LibPostalNet.csproj' targets 'netstandard2.1'. It cannot be referenced by a project that targets '.NETCoreApp,Version=v2.2'. Tests C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets 1655

Severity Code Description Project File Line Suppression State
Error NU1201 Project LibPostalNet is not compatible with netcoreapp2.2 (.NETCoreApp,Version=v2.2). Project LibPostalNet supports: netstandard2.1 (.NETStandard,Version=v2.1) Tests C:\JB\Study\LibPostal\DotNet\LibPostalNet\Tests\Tests.csproj 1

Nullreference Exception when trying to start without data

Im trying to start the LibPostalConsole example application without the data argument (because I can't find the data actually), but when it gets to
var response = libpostal.LibpostalParseAddress(query, new LibpostalAddressParserOptions());

The response object is null, and thus throws a nullreference exception in the next line.

What am I doing wrong? Or is it impossible to run without the data files?

Codebase for postal.dll

Hi,
I am currently learning the lib postal and its associated libraries. Is it possible to share the code for postal.dll ?

Regards
A

cosole code does not compile

take a look a at Main - libpostal is not declared anywhere. please check your code compiles to avoid confusion

Missing LibPostalNet-symbols.cpp file in LibPostalNet project

Hello,

I am trying to run the LibPostalNet console project and always get a null result (Zero pointer at the result of the native call)

I observed that the LibPostalNet csproj has a missing reference to LibPostalNet-symbols.cpp

Shouldn't that file be also available in the folder?

The master repository does not include that.

Thanks,
Regards,
Vlad

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.