Displaying 20 results from an estimated 68 matches for "zipcodes".
Did you mean:
zipcode
2012 Oct 26
1
using match-type function to return correctly ordered data from a dataframe
I am regularly running into a problem where I can't seem to figure out how
maintain correct data order when selecting data out of a dataframe. The
below code shows an example of trying to pull data from a dataframe using
ordered zip codes. My problem is returning the pulled data in the correct
order. This is a very simple example, but it illustrates a regular problem
that I am running into.
2006 Jun 16
3
Does HABTM support non "id" FKs?
Quick question. Say I have a geographical database with counties and zip
codes where counties have and belong to many zip codes.
zip_codes (id, zip_code)
counties (id, name)
When I create the association table, the Rails way says to do the
following: counties_zip_codes (county_id, zip_code_id).
However, given that zip_codes.zip_code is itself a candidate key, I
would much prefer to do the
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,
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 attachment was scrubbed...
URL:
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 pr...
2006 Jul 18
1
Need Help Updating Records
This is a stupid question I know, but it is driving me crazy - I am
missing something simple and basic here. I am trying to update missing
zip codes on a data table. I am doing something incorrectly as the 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
2012 Oct 15
1
calculate out of different 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 numbers from the zipcodes of
one state. .can anyone help me?I've been trying and seraching trough other
blogs and pages but I fail to find something that helps me.
Thanks a lot
--
View this message in context: http://r.78...
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
2011 Jun 14
1
Invalid Regular Expression
...eric(str_detect(mydf$keyword, state_match))
mydf$city <- as.numeric(str_detect(mydf$keyword, city_match))
mydf$agency <- as.numeric(str_detect(mydf$keyword, agency_match))
mydf$zipcode <- as.numeric(str_detect(mydf$keyword, zipcode_match))
However, when trying to create 0/1 values for zipcodes, which I've entered
in as character strings,
I get the following error:
Error: invalid regular expression
'35004|35005|35006|35007|35010|35014|35016|35019|35020|
How can I generate binary 0/1 values for zip code values.
I'm using R 2.13 on Ubuntu 10.10
Abraham
[[alternative HTML...
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,c...
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, timezone, and dst.
So when a user comes to my site and they enter in an zip code, I want it
to find all stores within a 20 mile radius of the zip code entered....
2006 Jun 18
3
ActiveRecord Help - Not finding Data
...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.latitude) )
* sin( radians(?))
+ cos( radians(zipcodes.latitude))
* cos( radians(?))
* cos( radians(zipcodes.longitude - ?) )
) ) * 69.09 < ?)", lat, lat, long, radius.to_i]
end
This is a proximity search by zip code. The problem is o...
2006 Jul 19
5
Model Validation - with a twist
I''m stuck in a catch-22 type problem. I have an insert form for a table
that uses the validation in the model. i.e. When you click submit on the
form and haven''t filled in the required fields then you get the nice
rails error messages saying "field can not be blank". This works fine
until I introduce some more logic.
What I''m trying to do is to validate
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 work fine.
Any alternate solution??
Thanks
--
Regards,
Himanshu
2007 May 20
0
Urgent :: File Object problem
disclaimer: Im not a developer, in fact I know very little of Ruby.
I had this script made for me by Endax, LLC. I have run into problems
with the script and they are unable/unwilling to help resolve the issue.
The script was working fine for a while, but now when I run it I get the
following error in the Ruby editor:
>ruby realtor_scraper.rb
realtor_scraper.rb:54:in `initialize'':
2006 Apr 22
2
Form.serialize problem
I''m sure I''m missing something dumb but I cannot get Form.serialize to
work. I have an alert in the function as a debug to show me what''s
supposed to be the serialized line of values but it always shows
nothing. Can somebody show me what I''m doing wrong? Thanks in advance.
function submitprofile() {
var url = "/profile/submitprofile.html?";