Giter Club home page Giter Club logo

arex388.geocodio's People

Contributors

arex388 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

minicodemonkey

arex388.geocodio's Issues

Accept keyed list for batch processing

I need to submit a batch of points that each have a key (https://www.geocod.io/docs/#batch-reverse-geocoding doesn't specify a format, but I was able to make it work by adapting the example at https://www.geocod.io/docs/#batch-geocoding):
{"11N 49417 364605":"32.952829,-117.062303","11N 49421 364608":"32.953046,-117.06191",...
For ReverseGeocodeBatchAsync, I created a List like this:
""11N 49417 364605":"32.952829,-117.062303""
But it returns results where the ResponseStatus = Success and Results is empty.

I wasn't able to find a way to pass a keyed list so that the results would be keyed as well.

Any chance this can be modified to optionally accept a Dictionary<string, string> or similar construct and return the appropriately keyed list?

Thanks!

V1.5

Hello,

Could you please update for API V1.5 for capturing the zip+4 data?

Thank you!

Adding census field to batch geocoding request?

I noticed this line in the code

public async Task<GeocodeBatchResponse> GetGeocodeBatchAsync(
		IList<string> addresses,
		params string[] fields) => await GetGeocodeBatchAsync(new GeocodeBatchRequest {
		Addresses = addresses,
		Fields = fields
	});

image

But I am unable to have the field options work when I try something like this:

 var geocodeBatch = await _geocodio.GetGeocodeBatchAsync(
                        geocodeFormatCollection, "census");

And like these:

var geocodeBatch = await _geocodio.GetGeocodeBatchAsync(geocodeFormatCollection, fields: 
    "census");

var geocodeBatch = await _geocodio.GetGeocodeBatchAsync(geocodeFormatCollection, new[] 
    {"census"});

var geocodeBatch =   await _geocodio.GetGeocodeBatchAsync(geocodeFormatCollection, fields: new[] 
     {"census"});

string[] fields = new string[] {"census"};
 var geocodeBatch =    await _geocodio.GetGeocodeBatchAsync(geocodeFormatCollection, fields );

It still runs but nothing is appended? Curious if there was a way to explain this in the ReadMe or if I am missing something. I have tried other fields like acs-demographics and still no result.

Move base request url to configuration option.

First, thank you for this library. Saved me some time, and looks nice and clean.

I did notice something while I was trying to use it. I was looking for where I set the endpoint value, and noticed you can't (it is hard coded). It would be great if there was a way to configure this so I could load from a configuration file. Just feels better than having a hard coded endpoint somewhere. This is probably something that changes rarely, but still feels like a best practice. Thank you!

Consider adding a license?

This is a really nice wrapper around Geocod.io's APIs, thank you for sharing! I was wondering, do you have any intention of add a license (like MIT or Apache 2)? Just want to make sure I wouldn't be running afoul of any licensing requirements by using the library. Thanks!

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.