Code Monkey home page Code Monkey logo

geocode_infas's Introduction

geocode_infas

A stata utility as a frontend to the geocoder of infoware now sold by infas360. The geocoder must be installed locally in order to make this utility work.

License

GPL-3/GPL-2

Make this utility work:

git clone https://github.com/christophrust/geocode_infas.git

then in stata-console, type

do compile_lgeocodeinfas.do
adopath ++ .
mata mata mlib index

happy geocoding:

import delimited using restaurants_nuernberg.csv , clear delimiter(";") encoding("utf-8") stringcols(_all)
keep if addrcity !="" & addrstreet!="" & addrpostcode!="" & addrhousenumber !=""
geocode_infas , street(addrstreet) strnum(addrhousenumber) plz(addrpostcode) city(addrcity) nclient(1) addressreturn servaddr("PAGSCoder") port(8090) encoding(utf8)

in order to work with the above example, the geocoder must receive requests at

http://127.0.0.1:8090/PAGSCoder/.

Parallel requests

The tool is designed to manage multiple requests in parallel. One, therefore, has to deploy the geocoder multiple times and name the web applications as follows:

  • PAGSCoder, PAGSCoder1, PAGSCoder2,...

such that they are available at

http://127.0.0.1:8090/PAGSCoder/, http://127.0.0.1:8090/PAGSCoder1/, http://127.0.0.1:8090/PAGSCoder2/, ...

In order to make parallel requests, invoke the geocoder from within stata by specifying the nclient() option

geocode_infas , street(addrstreet) strnum(addrhousenumber) plz(addrpostcode) city(addrcity) nclient(10) addressreturn servaddr("PAGSCoder") port(8090) encoding(utf8)

where 10 sessions will be used in parallel for geocoding.

Contact

In case, something doesn't work, contact me at christoph.rust [at] ur.de.

geocode_infas's People

Contributors

christophrust avatar

Watchers

James Cloos avatar

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.