Displaying 20 results from an estimated 68 matches for "zipcod".
Did you mean:
zipcode
2012 Oct 26
1
using match-type function to return correctly ordered data from a dataframe
...e and straightforward method ... probably
some function that I missed in all my googling.
Thanks in advance for anybody's help figuring this out.
~Markus
### Function Definitions ###
# FUNCTION #1 (returns wrong order)
getLatitude1 = function(myzips) {
# load libraries and data
library(zipcode)
data(zipcode)
# get latitude values
mylats = zipcode[zipcode$zip %in% myzips, "latitude"] #problem is that
this code does not maintain order
# return data
return(mylats)
}
# FUNCTION #2 (also returns wrong order)
getLatitude2 = function(myzips) {
# load libraries and dat...
2006 Jun 16
3
Does HABTM support non "id" FKs?
..._id, zip_code_id).
However, given that zip_codes.zip_code is itself a candidate key, I
would much prefer to do the following: counties_zip_codes (county_id,
zip_code), as this removes the need to join with the 42K record
zip_codes table.
However, when I do the following in the my model:
class ZipCode < Active....
has_and_belongs_to_many :counties, :foreign_key => "zip_code"
class County < Active...
has_and_belongs_to_many :zip_codes, :association_foreign_key =>
"zip_code"
AR still uses ZipCode.id when I call county.zip_codes << some_zip,
instead...
2005 Jun 10
6
us zipcode data map
i've search the email archives, searched the documention
of various map packages and done an R-site search, but
have been unable to find direct resources for creating maps
of the US that are colored or annotated or ... by zipcode
data.
For example, create a map of the US and color each zipcode
region by its population using two vectors z,p containing the
zipcode and population, respectively. I'm not looking for data
to fill z, and p. I'm looking for some highend functions to
display on a map the data that...
2006 Feb 03
4
Zipcode Search
Is there any package that I could use for zipcode search.
I want to display schools that near a particular zipcode. I have no idea how
to do this. It will be great if anyone can point me where I could find info
--
Rgds,
--Siva Jagadeesan
http://www.varcasa.com/
Education Through Collabration
-------------- next part --------------
An HTML attac...
2007 Jun 28
2
sampling question
I am interested in locating a script to implement a sampling scheme
that would basically make it more likely that a particular observation
is chosen based on a weight associated with the observation. I am
trying to select a sample of ~30 census blocks from each ZIP code area
based on the proportion of women in a ZCTA living in a particular
block. I want to make it more likely that a block will
2007 Nov 01
5
monster method (too hard for my skill level)
...cedures with respect to area. I have all the tables and data but
its hard to give that here. Can someone take a look at this ''stub''
method and help me out?
def calculate_fee
# strip out the first 3 numbers of the user entered zip code
# use those 3 numbers to identify row in [zipcodes table] (between
upper and lower zip code columns))
# identify ''RVS ID'' from that row
# identify the ''geographic zip area'' from that row
# query on user entered procedure description using [procedures table]
to identify ''procedure code''
# use...
2006 Jul 18
1
Need Help Updating Records
...e data
in the Source table is not being updated, only the value in the array is
changed. How do I get this to update the actual DB record instead?
def add_missing_zips
#find all records in source table that don''t have zip codes
no_zips = Source.find(:all, :conditions => [ "zipcode = ?", (nil ||
'''') ])
@starting_no_zips = no_zips.length
server = XMLRPC::Client.new2("http://geocoder.us/service/xmlrpc")
no_zips.each do |r|
result = server.call("geocode", r.full_address)
#update the record in the Source table if a z...
2012 Oct 15
1
calculate out of different lists in R
hey There
I've been trying to match 2 lists in R I have an excel sheet containing all
the 51states of amerika devided by zipcode. the columns are : zip,city,
state, latitude,longitude,count so now I want R to make a new table that I
could use to draw a map. The table should consist the name of the state plus
the count. Like I said I have all the zipcodes and the count for the
zipcodes, so now I would like to calculate the...
2005 Dec 14
3
Geocode for Ruby
Hey,
Does anybody know of a good Geocode library for Ruby, similar to Perl''s
Geocode::Postal, that i could use in my rail app? I need to do some "within
5 miles" calculations of zipcodes and i dont have a nice ruby (or gem)
utility to do it.
any help would be appreciated.
thanks
adam
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails
2012 Jan 06
2
Zipcode validation
Hi All,
How to validate Zip/Postal code enterd is valid based on country
selected? Is there any plugin for checking zipcode format for different
countries..
Thanks
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.g...
2011 Jun 14
1
Invalid Regular Expression
I'm working with some data, and am trying to generate it in the following
format.
state city zipcode
I like pizza 0 0 0
I live in Denver 0 1 0
All the fun stuff is in Alaska 1 0 0
he lives in 66062 0 0 1
So basically, I'm gen...
2009 Dec 14
1
lapply , mapply questions
...ng problem that should be simple, though i am stuck with it. Please note that this is not a specific geonames problem, though i use it as an example - it´s just a basic problem with lapply.
I use the geonames webservices with the R geonames packages which works almost smoothly.
I have a vector of Zipcodes and i want to do a geonames lookup for all of them, which should not be a problem.
Of course i could create a loop for that one, but i think lapply should be possible, too.
The problem is to hand over the variable to the lookup function.
lapply(zipcodes,GNpostalCodeLookup(postalcode=zipcodes...
2006 May 08
0
ZipCode Search
I''ve looked through the messages regarding implementing a ZipCode search
and I have a few questions to make sure I have my head wrapped around
this.
Here''s what I have. I have a database table called zipcodes with the
following info (for example)
30310 Atlanta GA 33.727807 -84.41983 -5 1
That''s zip, city, state, latitude, longitude, timez...
2006 Jun 18
3
ActiveRecord Help - Not finding Data
Hello,
I''m farily new to RoR and am having a problem trying to retrieve data
from my database. Here is the code from my controller:
def index
zip = params["zip"]
@zip1 = Zipcode.find(:first, :conditions => ["zip = ?", zip])
lat = @zip1.latitude.to_f
long = @zip1.longitude.to_f
radius = 50
@bookstores = Bookstore.find_by_sql ["SELECT * FROM bookstores WHERE
zipcode IN (
SELECT zip
FROM zipcodes
WHERE degrees(acos(
sin( radians(zipcodes...
2006 Jul 19
5
Model Validation - with a twist
...Any ideas?
Here''s my code so far:
def create
@bstore = Bookstore.new(params[:bookstore])
if @bstore.valid?
addresscheck = params[:bookstore][:address] + " " +
params[:bookstore][:city] + ", " + params[:bookstore][:state] + " " +
params[:bookstore][:zipcode]
address2 = ''q='' + addresscheck
url=''http://maps.google.com/maps/geo?''
address = address2
address1 = URI.escape(address)
googleoutput = ''&output=xml''
googlekey = ''&key=mykey''
result=URI(url...
2006 Jul 11
18
Zip Code Ranges
Does anyone have any recommendations for working with zip code distance
ranges? I need to calculate the distances between US zip codes.
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060711/f133d7de/attachment-0001.html
2007 May 23
1
Zipcodes latitude and longitude
I see several mapping libraries but cannot find how to do a simple task.
Starting with a vector of zip codes (in the United States and in Canada) I
would like to automatically lookup the corresponding coordinates. Can you
suggest a package and function that I should turn to?
I would also like to automatically pull in the altitude, and some climate
data.
--
Farrel Buchinsky
[[alternative HTML
2009 Jul 31
2
Undefined method updated? for <model object>
Hi,
I have two model say-
ZipCode < ActiveRecord::Base
belongs_to :state_provinces
end
StateProvince < ActiveRecord::Base
has_many :zip_codes
end
if I do @zip_code.update_atribute(:city, "My City")
its giving Undefined method updated? for StateProvince
if I remove belongs_to specifier in ZipCode class then it wo...
2007 May 20
0
Urgent :: File Object problem
...earch frame. Server is temporarily
unavailable!!!"
exit 2
end
search_form
=frame_search.forms.with.name("searchMemberForm").first
#3. Open result file ro prepare to save data
File.open(ARGV[1],"w") do |file1|
#4. Read zip codes from zipcode text file (each zipcode in 1
line in that file)
File.open(ARGV[0],"r") do |file2|
#5. With each zip code do
while line=file2.gets
# i) Enter zipcode in search form
puts "Processing on zip code: #{line}"
searc...
2006 Apr 22
2
Form.serialize problem
..."
id="lnamefield" size="50"><br>
Email Address: <input type="text" value="<% $user_href->{email} %>"
id="emailfield" size="50"><br>
<br>
Optional Info<br>
<br>
Zipcode: <input type="text" value="<% $user_href->{zipcode} %>"
id="zipcodefield" size="5"><br>
Age: <input type="text" value="<% $user_href->{age} %>"
id="agefield" size="2"><br&g...