boundaries-io

FREEMIUM
Verified
By Boundaries-io | Updated 15 days ago | Mapping
Popularity

9.8 / 10

Latency

217ms

Service Level

100%

Health Check

N/A

Back to All Discussions

Must have zipcode?

Rapid account: Theofficeexpress
theofficeexpress
9 years ago

I am calling the api with a zip code list and the response is code 400 with the body=“You must have a city,state,county, or zipcode as a request parameter”

The url is: https://vanitysoft-boundaries-io-v1.p.mashape.com/reaperfire/rest/v1/public/boundary?zipcode=90620%2C90621

as shown in the documentation.

I am using the Unirest\Request, just like the sample in the doc.

Rapid account: Matthewnoon 7
matthewnoon7 Commented a year ago

Hello! Are you using Java?
let us know if this works.

the below code snipplet gives:

GoogleMap image:
http://i.stack.imgur.com/Y5VRP.jpg
<code>
HttpResponse<JsonNode> response = Unirest.get(“https://vanitysoft-boundaries-io-v1.p.mashape.com/reaperfire/rest/v1/public/boundary?zipcode=90620%2C90621coreball”)
.header(“X-Mashape-Key”, “xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”)
.header(“Accept”, “application/json”)
.asJson();

String output = response.getBody().getObject().toString();
FileUtils.writeStringToFile(new File(“output.json”), output);
<code>
So useful, thank you very much!

Rapid account: Vanity Soft
VanitySoft Commented 8 years ago

Hello,
We’ve tested the end point in a php client and found no issues. It returns the GeoJson as expected. Send us an email if your still having a problem.

Thanks!

Rapid account: Vanity Soft
VanitySoft Commented 9 years ago

Hello!
We have a trouble ticket with the Mashape team. Their PHP developer is also looking into this issue, we should have a resolution shortly. Sorry for the inconvenience!

Rapid account: Theofficeexpress
theofficeexpress Commented 9 years ago

I did cut/paste. I just ran dos2unix and no difference. This was the url I used this time.

https://vanitysoft-boundaries-io-v1.p.mashape.com/reaperfire/rest/v1/public/boundary?zipcode=90680%2C90742%2C90743%2C92602%2C92603%2C92604%2C92606%2C92609%2C92610%2C92612%2C92614%2C92617%2C92618%2C92620%2C92624%2C92625%2C92626%2C92627%2C92628%2C92629%2C92630%2C92637%2C92646%2C92647%2C92648%2C92649%2C92652%2C92653%2C92654%2C92655%2C92657%2C92660
Rapid account: Vanity Soft
VanitySoft Commented 9 years ago

Did you happen to ‘cut and paste’ the code? from windows to a file on unix? Try running dos2unix on the source file. or typing code directly in that file instead of copy& paste.

In the mean time we will try to reproduce on our end!

http://unirest.io/php.html

Rapid account: Theofficeexpress
theofficeexpress Commented 9 years ago

I am using PHP. Below is the code I am using.

// These code snippets use an open-source library. http://unirest.io/php
$response = Unirest\Request::get("https://vanitysoft-boundaries-io-v1.p.mashape.com/reaperfire/rest/v1/public/boundary?zipcode=90680",
  array(
    "X-Mashape-Key" => "vXY7cLdiLLmshCGerXx8or1WiPG8p15KNuGjsn2759xkZrT6wv",
    "Accept" => "application/json"
  )
);
Rapid account: Vanity Soft
VanitySoft Commented 9 years ago

Hello! Are you using Java?
let us know if this works.

the below code snipplet gives:

GoogleMap image:
http://i.stack.imgur.com/Y5VRP.jpg
<code>
HttpResponse<JsonNode> response = Unirest.get(“https://vanitysoft-boundaries-io-v1.p.mashape.com/reaperfire/rest/v1/public/boundary?zipcode=90620%2C90621”)
.header(“X-Mashape-Key”, “xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”)
.header(“Accept”, “application/json”)
.asJson();

	 String output = response.getBody().getObject().toString();
	 FileUtils.writeStringToFile(new File("output.json"), output);

<code>

Join in the discussion - add comment below:

Login / Signup to post new comments