Fedex shipping zone api?

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
User avatar
allspiritseve
DevNet Resident
Posts: 1174
Joined: Thu Mar 06, 2008 8:23 am
Location: Ann Arbor, MI (USA)

Fedex shipping zone api?

Post by allspiritseve »

Just a quick question, but does anybody know a simple way to get a fedex shipping zone from a zip code? All I can find are huge SOAP classes that don't seem to have simple apis or documentation, and I've never worked with SOAP before.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Fedex shipping zone api?

Post by Christopher »

I recall that I downloaded their zone data and used it. It think only a few digits are significant.
(#10850)
User avatar
allspiritseve
DevNet Resident
Posts: 1174
Joined: Thu Mar 06, 2008 8:23 am
Location: Ann Arbor, MI (USA)

Re: Fedex shipping zone api?

Post by allspiritseve »

Hmmm.. I downloaded their zone data but it's 1.3MB worth of CSV data. Not really something I can put into a script or want to parse on every request. I'll have to look and see if there's a simpler version
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Fedex shipping zone api?

Post by Christopher »

I think I put what I needed in a database table and looked it up -- which is as fast as getting it via a web service.
(#10850)
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: Fedex shipping zone api?

Post by Benjamin »

It's probably designed to be inserted into your database.
User avatar
allspiritseve
DevNet Resident
Posts: 1174
Joined: Thu Mar 06, 2008 8:23 am
Location: Ann Arbor, MI (USA)

Re: Fedex shipping zone api?

Post by allspiritseve »

astions wrote:It's probably designed to be inserted into your database.
Doubtful... it's split up into hundreds of files and each one has text as well as CSV data, so I don't think it'll import. It seems like, as arborint mentioned, there should be a simple list of ranges that equate to a certain zone. The list they currently live I think gives every single 3 number combination that matches the first 3 numbers of every zip code in the US.
Post Reply